Permalink
Browse files

Make Cog run again

  • Loading branch information...
christophermaier committed Feb 17, 2017
1 parent 7063e73 commit e0718ad4b3f0e3a3815d95e808767dc6bd6dcf90
Showing with 6 additions and 3 deletions.
  1. +5 −0 Dockerfile
  2. +1 −3 scripts/docker-start
View
@@ -32,3 +32,8 @@ RUN apk update -U && \
COPY cogctl-for-docker-build /usr/local/bin/cogctl
USER operable
# TODO: For some reason, Hex needs to be present in the operable
# user's home directory for Cog to run (specifically, for it to apply
# the database migrations at startup). It complains of not being able
# to build gen_stage, *even though it's already been built!*
RUN mix local.hex --force
View
@@ -17,9 +17,7 @@ mix ecto.migrate --no-deps-check
if [[ -n "$COG_BOOTSTRAP_USERNAME" && -n "$COG_BOOTSTRAP_PASSWORD" ]]; then
echo "Generating a cogctl profile..."
cogctl profiles create default \
--rest-user "${COG_BOOTSTRAP_USERNAME}" \
--rest-password "${COG_BOOTSTRAP_PASSWORD}"
cogctl profile create default http://localhost:4000 "${COG_BOOTSTRAP_USERNAME}" "${COG_BOOTSTRAP_PASSWORD}"
fi
echo "Launching Cog server..."

0 comments on commit e0718ad

Please sign in to comment.