Git Product home page Git Product logo

dockerfiles's People

Contributors

dkubb avatar mbj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dockerfiles's Issues

Change bundle to run as rails user

The bundle command should not be run as the root user. After gem installation the files should be changed to be owned by root:root and have 0644 perms.

Add minimal smoke test on CI as a minimal baseline check.

Currently its easy to introduce regressions like typos or syntax errors as just corrected in #25.

We want a minimal smoke test that:

  • Builds all images on CI, that will cover the Dockerfiles can result in an image (not their correctness)
  • Boots the images and hits / or another stable generic URL asserting a specific status code. This will cover the shipped nginx configuration is free from some easy to catch errors (such as typos)

While by far not perfect its much less likely we introduce "stupid" regressions with a most basic guard.

Fix instance to work with read-only file system

By adding --read-only to the docker run command, and specifying /var and /etc/service as being volumes, it should be possible to mount everything as read-only.

The only change should be for Rails to log to /var/logs so that it doesn't attempt to write to /opt/rails/logs, which will become immutable.

Add bash script with common strict setup code

Currently the same stanza is duplicated between every bash script that enables a "strict mode" for the bash script to run under. It would be better for this to be globally available so that it can be included in every bash script instead of duplicated.

Extract common functionality from alpine-rails-nginx to alpine

Some of the functionality is shared between alpine-rails-buildkite and alpine-rails-nginx but not all. We have to explicitly remove rails and nginx references from alpine-rails-buildkite, which should not happen if there was a common shared container for both.

Add stub for /etc/runit/3

When a container is shut down it attempts to execute /etc/runit/3, but the file does not exist. A stub should be created to prevent this error.

If there is a simple way to shut down all running services started by /etc/runit/2 that would be preferable, but at the moment I do not know of one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.