Skip to content

Commit

Permalink
Merge pull request #116 from gushil/master-OC-20909
Browse files Browse the repository at this point in the history
OC-20909 Using AWS ECR koboform_base docker image
  • Loading branch information
svadla-oc authored Oct 23, 2023
2 parents 01b2d15 + 2cf393e commit 0e4c3f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM kobotoolbox/koboform_base:latest
FROM 837577998611.dkr.ecr.us-west-2.amazonaws.com/kobotoolbox/koboform_base:latest


# Note: Additional environment variables have been set in `Dockerfile.koboform_base`.
Expand Down
8 changes: 5 additions & 3 deletions docker/init.bash
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,18 @@ fi
echo 'Synchronizing database.'
# python manage.py syncdb --noinput

echo 'Running fake migrations.'
python manage.py migrate auth 0007 --fake --noinput
python manage.py migrate auth 0008 --fake --noinput
# echo 'Running fake migrations.'
# python manage.py migrate auth 0007 --fake --noinput
# python manage.py migrate auth 0008 --fake --noinput
echo 'Running migrations.'
python manage.py migrate --noinput

if [[ ! -L "${KPI_SRC_DIR}/node_modules" ]] || [[ ! -d "${KPI_SRC_DIR}/node_modules" ]]; then
echo "Restoring \`npm\` packages to \`${KPI_SRC_DIR}/node_modules\`."
rm -rf "${KPI_SRC_DIR}/node_modules"
ln -s "${KPI_NODE_PATH}" "${KPI_SRC_DIR}/node_modules"
npm install --quiet && \
npm cache clean --force
fi

if [[ ! -L "${KPI_SRC_DIR}/jsapp/compiled" ]] || [[ ! -d "${KPI_SRC_DIR}/jsapp/compiled" ]]; then
Expand Down

0 comments on commit 0e4c3f4

Please sign in to comment.