Skip to content

Commit

Permalink
Merge pull request #486 from EpistasisLab/docker_updates
Browse files Browse the repository at this point in the history
Docker updates
  • Loading branch information
jay-m-dev authored Dec 17, 2022
2 parents d6ee3da + 02a97ca commit 9b98f68
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/ai.env-template
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


AI_AUTOSTART=1
AI_RECOMMENDER=svd
AI_RECOMMENDER=random
AI_VERBOSE=1
AI_PMLB_KNOWLEDGEBASE=1
AI_TERM_COND=n_recs
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ services:
build:
context: .
dockerfile: docker/lab/Dockerfile
x-bake:
platforms:
- linux/arm64
tty: true
stdin_open: true
volumes:
Expand All @@ -23,6 +26,9 @@ services:
build:
context: .
dockerfile: docker/machine/Dockerfile
x-bake:
platforms:
- linux/arm64
tty: true
stdin_open: true
volumes:
Expand All @@ -41,6 +47,9 @@ services:
build:
context: .
dockerfile: docker/dbmongo/Dockerfile
x-bake:
platforms:
- linux/arm64
tty: true
stdin_open: true
ports:
Expand Down
3 changes: 3 additions & 0 deletions docker/lab/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ RUN cp '/etc/profile.d/.env' '/etc/profile.d/tag.sh'
RUN dos2unix /etc/profile.d/tag.sh
RUN sed -i "s/TAG=/export TAG=/g" /etc/profile.d/tag.sh

# clean up
RUN apt-get remove -y wget xz-utils


# Start the webserver
CMD ["/bin/bash", "/root/start.sh"]
Expand Down
4 changes: 4 additions & 0 deletions docker/machine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ RUN npm install --silent --progress=false
COPY ${docker_filepath}/entrypoint.sh /root/
COPY ${docker_filepath}/wait-for-it.sh /root/
RUN dos2unix /root/wait-for-it.sh && dos2unix /root/entrypoint.sh

# clean up
RUN apt-get remove -y wget xz-utils

RUN ["chmod", "+x", "/root/wait-for-it.sh"]

CMD ["/bin/bash", "/root/entrypoint.sh"]

0 comments on commit 9b98f68

Please sign in to comment.