Skip to content

Commit

Permalink
Fixed: Gateway container runs regardless CLI containers is not ready …
Browse files Browse the repository at this point in the history
…yet (#425)

* Fixed: Gateway container runs regardless CLI containers is not ready yet

* Fixed: CLI container fails due to missing files for logs output
  • Loading branch information
sprymiker authored Mar 22, 2023
1 parent 432af6e commit 129a942
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-SCHEMA-BASE-URL $scheme://$host;
proxy_pass http://cli:9000/glueSchema/;

resolver 127.0.0.11 valid=10s;
set $cli_proxy_pass http://cli:9000/glueSchema/;
proxy_pass $cli_proxy_pass;
}
{% endblock locations %}
3 changes: 2 additions & 1 deletion images/common/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ COPY --chown=spryker:spryker cli /home/spryker/bin
RUN find /home/spryker/bin -type f -exec chmod +x {} \;
ENV PATH=/home/spryker/bin:$PATH

RUN mkdir -p /home/spryker/ssh-relay/ && chmod 777 /home/spryker/ssh-relay && touch /home/spryker/ssh-relay/ssh-auth.sock && chmod 666 /home/spryker/ssh-relay/ssh-auth.sock
RUN mkdir -p /home/spryker/ssh-relay/ && chmod 777 /home/spryker/ssh-relay && touch /home/spryker/ssh-relay/ssh-auth.sock && chmod 666 /home/spryker/ssh-relay/ssh-auth.sock \
&& touch /tmp/stdout && touch /tmp/stderr && chmod 666 /tmp/stdout && chmod 666 /tmp/stderr

RUN mkdir -p /home/spryker/history && touch /home/spryker/history/.bash_history && chmod 0600 /home/spryker/history/.bash_history
ENV HISTFILE=/home/spryker/history/.bash_history
Expand Down

0 comments on commit 129a942

Please sign in to comment.