Skip to content

Commit

Permalink
Merge pull request #181 from sbesson/dockerignore_cache
Browse files Browse the repository at this point in the history
Add .cache folder to .dockerignore for server, slave and web containers
  • Loading branch information
sbesson authored Jun 17, 2021
2 parents 76204a7 + 6b10811 commit 5a213fd
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
./rename.py travis
./sslcert jenkins/sslcert localhost
./sslcert nginx/sslcert localhost
- name: Display Docker version
run: docker version
- name: Build
run: docker-compose -f docker-compose.yml build
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RUN usermod -u $USER_ID omero
RUN mkdir -p /home/omero/static
RUN chown -R omero:omero /home/omero/static

VOLUME ['/etc/nginx/conf.d', '/home/omero/static', '/var/log/nginx', '/etc/nginx/ssl']
VOLUME ["/etc/nginx/conf.d", "/home/omero/static", "/var/log/nginx", "/etc/nginx/ssl"]

USER omero
CMD ["/tmp/run.sh"]
1 change: 1 addition & 0 deletions server/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ omero-server-data
workspace
.jenkins
.local
.cache
2 changes: 1 addition & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ ARG USER_ID=1000
RUN usermod -u $USER_ID omero

# make sure mounted volumes has correct permissions
VOLUME ['/home/omero']
VOLUME ["/home/omero"]

USER omero
CMD ["/tmp/run.sh"]
1 change: 1 addition & 0 deletions slave/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
workspace
.jenkins
.local
.cache
2 changes: 1 addition & 1 deletion slave/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ ARG USER_ID=1000
RUN usermod -u $USER_ID omero

# make sure mounted volumes has correct permissions
VOLUME ['/home/omero']
VOLUME ["/home/omero"]

USER omero
CMD ["/tmp/run.sh"]
1 change: 1 addition & 0 deletions web/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
workspace
.jenkins
.local
.cache
2 changes: 1 addition & 1 deletion web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ RUN usermod -u $USER_ID omero
RUN mkdir -p /home/omero/nginx
RUN chown -R omero:omero /home/omero/nginx

VOLUME ['/home/omero', '/home/omero/nginx']
VOLUME ["/home/omero", "/home/omero/nginx"]

USER omero
CMD ["/tmp/run.sh"]

0 comments on commit 5a213fd

Please sign in to comment.