Skip to content
Snippets Groups Projects
Commit 0944352e authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Add deployer to the CI docker image

parent bd6227a7
No related branches found
No related tags found
No related merge requests found
...@@ -24,3 +24,12 @@ RUN apt-get update && apt-get install -y \ ...@@ -24,3 +24,12 @@ RUN apt-get update && apt-get install -y \
RUN useradd -u 1000 -ms /bin/bash user RUN useradd -u 1000 -ms /bin/bash user
RUN echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers RUN echo 'user ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER user USER user
WORKDIR /home/user
# Install deployer globally and add it to PATH
ENV COMPOSER_HOME="/home/user/.composer"
RUN mkdir -p "${COMPOSER_HOME}"
ADD composer.lock "${COMPOSER_HOME}"
ADD composer.json "${COMPOSER_HOME}"
RUN composer global install
ENV PATH "${COMPOSER_HOME}/vendor/bin:${PATH}"
\ No newline at end of file
#!/bin/bash #!/bin/bash
set -e set -e
TAG="registry.gitlab.tugraz.at/vpu/webcomponents/common/main:v2" TAG="registry.gitlab.tugraz.at/vpu/webcomponents/common/main:v3"
sudo docker build --tag "${TAG}" --file "Dockerfile" . sudo docker build --tag "${TAG}" --file "Dockerfile" .
echo "Now run: sudo docker push '$TAG'" echo "Now run: sudo docker push '$TAG'"
{
"require": {
"symfony/process": " ^4.4",
"symfony/console": " ^4.4",
"symfony/yaml": " ^4.4",
"deployer/deployer": " ^6.4",
"deployer/recipes": " ^6.2"
}
}
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment