Browse Source

Change docker version used

master
Apostolos Fanakis 5 years ago
parent
commit
6e605b68ee
  1. 2
      Makefile
  2. 9
      docker-compose.yml
  3. 2
      install.sh
  4. 3
      jenkins/Dockerfile

2
makefile → Makefile

@ -4,7 +4,7 @@ run:
@docker-compose -p janus up -d @docker-compose -p janus up -d
stop: stop:
@docker-compose -p janus down @docker-compose -p janus down
clean-data: stop-clean-data:
@docker-compose -p janus down -v @docker-compose -p janus down -v
clean-images: clean-images:
@docker rmi `docker images -q -f "dangling=true"` @docker rmi `docker images -q -f "dangling=true"`

9
docker-compose.yml

@ -3,7 +3,7 @@ services:
# Nginx reverse proxy container # Nginx reverse proxy container
# Reference: # Reference:
# https://github.com/jwilder/nginx-proxy # https://github.com/jwilder/nginx-proxy
nginx-proxy: # TODO: maybe split this to the two underlying images? nginx-proxy:
image: jwilder/nginx-proxy image: jwilder/nginx-proxy
container_name: nginx-proxy container_name: nginx-proxy
restart: always restart: always
@ -57,7 +57,10 @@ services:
# Reference: # Reference:
# https://jenkins.io/doc/book/blueocean/ # https://jenkins.io/doc/book/blueocean/
jenkins: jenkins:
build: ./jenkins build:
dockerfile: ./jenkins
args:
HOST_DOCKER_VERSION: ${HOST_DOCKER_VERSION:-19.03.5}
container_name: jenkins container_name: jenkins
restart: always restart: always
user: root user: root
@ -82,7 +85,7 @@ networks:
apella-net: apella-net:
driver: bridge driver: bridge
# Secrets in use # Secrets in use
secrets: # TODO: figure out a better way to do this? secrets:
jenkins_admin_username: jenkins_admin_username:
file: ./jenkins/user file: ./jenkins/user
jenkins_admin_password: jenkins_admin_password:

2
install.sh

@ -32,6 +32,6 @@ if [[ "$SHOULD_EXIT" = "1" ]]; then
fi fi
# Installs docker using the get.docker.com method # Installs docker using the get.docker.com method
HOST_DOCKER_VERSION="18.09" HOST_DOCKER_VERSION="19.03.5"
VERSION=$HOST_DOCKER_VERSION VERSION=$HOST_DOCKER_VERSION
curl -fsSL https://get.docker.com -o get-docker.sh | sh curl -fsSL https://get.docker.com -o get-docker.sh | sh

3
jenkins/Dockerfile

@ -11,7 +11,8 @@ RUN chown -R jenkins:jenkins /var/cache/jenkins
# Installs docker inside container # Installs docker inside container
# ATENTION: version MUST be the same as host's docker installation! # ATENTION: version MUST be the same as host's docker installation!
ARG VERSION=$HOST_DOCKER_VERSION ARG HOST_DOCKER_VERSION
ENV VERSION=$HOST_DOCKER_VERSION
RUN curl -fsSL https://get.docker.com -o get-docker.sh | sh RUN curl -fsSL https://get.docker.com -o get-docker.sh | sh
# Installs tools needed when installing npm packages # Installs tools needed when installing npm packages

Loading…
Cancel
Save