Skip to content

Commit

Permalink
Docker - use main instead of master branch (only to be merged when 2.…
Browse files Browse the repository at this point in the history
…16 is about to be merged into main) (#1438)

* Modify the build args section.
  - To use main branches by default.
  - Layout change of the settings.
Add a minor comment regarding ADD_APT_PACKAGES and startup speed.

* Second branch option to develop instead of 2.16 branches + add comment about using other branches
  • Loading branch information
taniwallach authored Jul 14, 2021
1 parent 141f1a3 commit 0b3914e
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,23 @@ services:
# context: /Path_To/webwork2/
# dockerfile: /Path_To/Dockerfile
args:
# build args specifying the branches for webwork2 and pg used to build the image
# To use the master branches of webwork2 and pg
#- ARG WEBWORK2_BRANCH=master
#- ARG PG_BRANCH=master
# To use the 2.15 branches of webwork2 and pg from the "official" GitHub repositories
# Build args to set the source Git repositories. Here we set the main repositories:
- WEBWORK2_GIT_URL=https://github.com/openwebwork/webwork2.git
- WEBWORK2_BRANCH=WeBWorK-2.16
- PG_GIT_URL=https://github.com/openwebwork/pg.git
- PG_BRANCH=PG-2.16

# Build args specifying the branches of webwork2 and pg to install.

# Exactly one pair of settings should be left uncommented and all the others
# should be commented out.

# main branches:
- WEBWORK2_BRANCH=main
- PG_BRANCH=main

# WeBWorK/PG develop branches
# (other valid branches can also be used in a similar manner)
#- WEBWORK2_BRANCH=develop
#- PG_BRANCH=develop

# If you are using the 2 stage build process uncomment the next line
dockerfile: DockerfileStage2
Expand Down Expand Up @@ -225,6 +233,7 @@ services:
#ADD_LOCALES: "he_IL ISO-8859-8\nhe_IL.UTF-8 UTF-8\n"

# Extra Ubuntu packages to install during startup
# Commenting the following line out will speed up container startup time.
ADD_APT_PACKAGES: nano less

# The system timezone for the container can be set using
Expand Down

0 comments on commit 0b3914e

Please sign in to comment.