Skip to content

Commit

Permalink
#7: Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Nov 15, 2020
1 parent c5b74d7 commit d4475e6
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 37 deletions.
12 changes: 7 additions & 5 deletions .infrastructure/arm.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ RUN cd /infracheck \
&& pip3 install pbr==5.4.5 \
&& pip3 install -r /infracheck/requirements.txt \
&& rkd :install \
# after installing as package extract infrastructural files
\
&& cp -pr /infracheck/entrypoint.sh / \
&& cp -pr /infracheck/supervisord.conf /etc/supervisord.conf \
&& chmod +x /entrypoint.sh \
\
# delete the temporary directory after the application was installed via setuptools
&& rm -rf /infracheck \
Expand All @@ -37,4 +32,11 @@ RUN cd /infracheck \
&& apk del BUILD_DEPS
RUN [ "cross-build-end" ]

ADD /.infrastructure/entrypoint.sh /entrypoint.sh
ADD /.infrastructure/supervisord.conf /etc/supervisord.conf

RUN [ "cross-build-start" ]
RUN chmod +x /entrypoint.sh
RUN [ "cross-build-end" ]

ENTRYPOINT ["/entrypoint.sh"]
File renamed without changes.
17 changes: 0 additions & 17 deletions .infrastructure/generate-requirements-txt.py

This file was deleted.

10 changes: 0 additions & 10 deletions .infrastructure/notify.sh

This file was deleted.

File renamed without changes.
9 changes: 4 additions & 5 deletions .infrastructure/x86_64.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ RUN cd /infracheck \
&& pip3 install pbr==5.4.5 \
&& pip3 install -r /infracheck/requirements.txt \
&& rkd :install \
# after installing as package extract infrastructural files
\
&& cp -pr /infracheck/entrypoint.sh / \
&& cp -pr /infracheck/supervisord.conf /etc/supervisord.conf \
&& chmod +x /entrypoint.sh \
\
# delete the temporary directory after the application was installed via setuptools
&& rm -rf /infracheck \
Expand All @@ -33,4 +28,8 @@ RUN cd /infracheck \
\
&& apk del BUILD_DEPS

ADD /.infrastructure/entrypoint.sh /entrypoint.sh
ADD /.infrastructure/supervisord.conf /etc/supervisord.conf
RUN chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit d4475e6

Please sign in to comment.