Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add USER statement to Docker image #37

Merged
merged 4 commits into from
Apr 1, 2019
Merged

Conversation

kennyko
Copy link
Contributor

@kennyko kennyko commented Mar 27, 2019

  • Refactor Dockerfile
  • Remove k8s templates in favor of helm charts

* Refactor Dockerfile
* Remove k8s templates in favor of helm charts
@kennyko kennyko self-assigned this Mar 27, 2019
apt-get clean && \
gem install bundler && \
rm -f /etc/ImageMagick-6/policy.xml && \
chown 10001:10001 /app
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI failed for postgres permissions

Starting [secure]_postgres_1 ... 
Errno::EACCES: Permission denied @ rb_sysopen - /app/log/ci_test.log

RUN apt-get install -y build-essential checkinstall libx11-dev libxext-dev zlib1g-dev libpng-dev libjpeg-dev libfreetype6-dev libxml2-dev nodejs

RUN apt-get install -y imagemagick libmagick++-dev libmagic-dev libmagickwand-dev vim libpq-dev && apt-get clean
ARG RAILS_MASTER_KEY=""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why add the default string?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allows building the docker image without requiring the master key to be passed. It's not used anywhere during build time anyways.

@ScottBishop ScottBishop added the Ready To Merge Stamp of approval label Apr 1, 2019
@ScottBishop ScottBishop merged commit 5e4d1b1 into master Apr 1, 2019
@ScottBishop ScottBishop deleted the docker-image-improvements branch April 1, 2019 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready To Merge Stamp of approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants