Skip to content

Commit

Permalink
update Dockerfile to build dependencies and update init.sh script
Browse files Browse the repository at this point in the history
Signed-off-by: Mbaoma <[email protected]>
  • Loading branch information
Mbaoma committed Dec 4, 2024
1 parent 1950c93 commit ae8fb15
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
8 changes: 8 additions & 0 deletions docker/backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.log
*.pyc
__pycache__/
.env
.git
node_modules/
dist/
venv/
5 changes: 4 additions & 1 deletion docker/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,11 @@ RUN GECKODRIVER_VERSION=$(curl -s https://api.github.com/repos/mozilla/geckodriv
COPY --from=builder /opt/venv /opt/venv
COPY --from=builder /augur /augur

# Ensure correct permissions and set entrypoint
# Execute the install-workers-deps.sh script here
RUN chmod +x /augur/scripts/docker/install-workers-deps.sh /augur/scripts/docker/install-go.sh
RUN ./augur/scripts/docker/install-workers-deps.sh
RUN ./augur/scripts/docker/install-go.sh

RUN mkdir -p /augur/facade/ repos/ logs/

COPY ./docker/backend/entrypoint.sh /
Expand Down
2 changes: 1 addition & 1 deletion docker/backend/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fi


if [ ! -v AUGUR_NO_CONFIG ]; then
./scripts/install/config.sh docker
./augur/scripts/install/config.sh docker
fi

if [[ -f /repo_groups.csv ]]; then
Expand Down
2 changes: 1 addition & 1 deletion environment.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AUGUR_GITHUB_API_KEY=<PUT YOUR GITHUB API KEY HERE>
AUGUR_GITHUB_USERNAME=<PUT YOUR GITHUB USERNAME HERE>
AUGUR_GITHUB_USERNAME=Mbaoma
AUGUR_GITLAB_API_KEY=<PUT YOUR GITLAB KEY HERE>
AUGUR_GITLAB_USERNAME=<PUT YOUR GITLAB USERNAME HERE>
AUGUR_DB=<PUT YOUR DATABASE CONNECTION STRING HERE>
Expand Down
2 changes: 1 addition & 1 deletion scripts/docker/install-workers-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ done
# taken from ./scripts/install/nltk_dictionaries.sh
for i in stopwords punkt popular universal_tagset ; do
/opt/venv/bin/python -m nltk.downloader $i
done
done

0 comments on commit ae8fb15

Please sign in to comment.