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

Build on RHEL and move from caddy to nginx #297

Merged
merged 3 commits into from
Apr 26, 2018

Conversation

jmelis
Copy link
Collaborator

@jmelis jmelis commented Apr 25, 2018

Enables build on RHEL if TARGET=rhel:

  • The build scripts will be executed twice on the same machine, once for
    CentOS and one for RHEL
  • docker login is required to run docker build
  • The image target is different if TARGET=rhel
  • There is a separate Dockerfile for the RHEL build

Additionally, it replaces caddy with nginx as the static web server, to match
other services in OSIO.

When this is merged it will be automatically deployed to staging based on RHEL,
but prod will be kept on CentOS.

Enables build on RHEL if TARGET=rhel:

- The build scripts will be executed twice on the same machine, once for
  CentOS and one for RHEL
- `docker login` is required to run `docker build`
- The image target is different if TARGET=rhel
- There is a separate Dockerfile for the RHEL build

Additionally, it replaces caddy with nginx as the static web server, to match
other services in OSIO.
ls -al /var/lib/nginx/
ls -al /var/log/nginx/

nginx -c /etc/nginx/nginx.conf
Copy link

Choose a reason for hiding this comment

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

shuould not be an exec when you run as pid1?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I used the same template as this one: https://github.com/fabric8-ui/fabric8-ui-openshift-nginx/blob/master/Dockerfile, which is in turn based on https://github.com/kbsingh/openshift-nginx, which has exactly that run.sh:
https://github.com/kbsingh/openshift-nginx/blob/master/root/run.sh

All the nginx based containers that I've seen in OSIO are using this entrypoint.

You may be right though, and I'm all in favour of improving this if need be, but I have tested this and it does work, can we get through this PR and address this at a later stage?

Copy link

Choose a reason for hiding this comment

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

yeah no worries,

@jmelis
Copy link
Collaborator Author

jmelis commented Apr 26, 2018

[test]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants