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

Make sure traefik runs in an openshift workspace #7955

Merged
2 commits merged into from
Dec 20, 2017
Merged

Make sure traefik runs in an openshift workspace #7955

2 commits merged into from
Dec 20, 2017

Conversation

ghost
Copy link

@ghost ghost commented Dec 19, 2017

What does this PR do?

Sets CHE_API for Traefik according to infra, adds sufficient permissions for tomcat and traefik

@ghost ghost requested a review from skabashnyuk December 19, 2017 11:44
@ghost ghost requested review from benoitf and riuvshin as code owners December 19, 2017 11:44
@ghost ghost changed the title Make sure traefik run in an openshift workspace Make sure traefik runs in an openshift workspace Dec 19, 2017
@benoitf benoitf added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. target/che6 labels Dec 19, 2017
@@ -60,12 +62,17 @@ RUN mkdir /home/user/traefik ;\
wget -O /home/user/traefik/traefik "https://github.com/containous/traefik/releases/download/v1.4.3/traefik_linux-amd64"; \
chmod +x /home/user/traefik/traefik
COPY traefik.toml /home/user/traefik/
RUN sudo chgrp -R 0 ~/traefik;\
sudo chmod -R g+rwX ~/traefik
Copy link
Contributor

Choose a reason for hiding this comment

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

can we group RUN instructions ?



RUN sudo mkdir /var/run/sshd
RUN sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N '' && \
sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_ecdsa_key -N '' && \
sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_ed25519_key -N '' && \
npm install -g typescript@2.5.3 typescript-language-server@0.1.4

ADD entrypoint.sh /home/user/entrypoint.sh
RUN sudo chmod +x /home/user/entrypoint.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to chmod the file if file is committed with execute permissions ?

WORKDIR /projects
ENTRYPOINT ["/home/user/entrypoint.sh"]
CMD tail -f /dev/null
Copy link
Contributor

Choose a reason for hiding this comment

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

there is a missing new line

@@ -0,0 +1,32 @@
#!/bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

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

copyright header is missing

@ghost ghost merged commit 3da22f6 into che6 Dec 20, 2017
@ghost ghost deleted the dev_image branch December 20, 2017 07:41
@benoitf benoitf added this to the 6.0.0-M4 milestone Dec 20, 2017
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Dec 20, 2017
This pull request was closed.
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.

None yet

3 participants