Skip to content

Commit 6e6d2c2

Browse files
author
Simeranjeet Sandhu
committed
Updating README/Deployment
1 parent 948ec67 commit 6e6d2c2

File tree

10 files changed

+243
-298
lines changed

10 files changed

+243
-298
lines changed

.github/workflows/cd-workflows.yml

Lines changed: 0 additions & 100 deletions
This file was deleted.

Dockerfile

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,44 @@
1-
# Dockerfile
1+
FROM registry1.dso.mil/ironbank/redhat/python/python39:3.9
2+
USER root
3+
4+
RUN yum update -y && yum install -y libxml2-devel xmlsec1 xmlsec1-openssl openssl libtool-ltdl pkg-config
5+
# Copy/extract openlxp-ecc-xis source code
6+
RUN mkdir -p /tmp/openlxp-xis
7+
8+
WORKDIR /tmp/openlxp-xis/
9+
10+
COPY openlxp-xis-1.0.3.tar.gz .
11+
12+
RUN tar -xvf ./openlxp-xis-1.0.3.tar.gz --strip-components=1
13+
RUN cp ./requirements.txt ./start-app.sh ./start-server.sh /tmp/
14+
RUN rm openlxp-xis-1.0.3.tar.gz
15+
# Requirements for xis
16+
RUN if [ ! -f /tmp/debug.log ]; then touch /tmp/debug.log ; fi && \
17+
chmod a=rwx /tmp/debug.log && \
18+
chmod +x /tmp/start-server.sh && \
19+
chmod +x /tmp/start-app.sh && \
20+
pip install --upgrade pip && \
21+
pip install -r requirements.txt && \
22+
chmod -s /usr/bin/write && \
23+
chmod -s /var/lib/tpm2-tss/system/keystore
24+
25+
RUN chown -R 1001:1001 /tmp//tmp/openlxp-xis/
26+
WORKDIR /tmp/openlxp-xis/
27+
RUN yum clean all
28+
29+
# remove unnecessary test files
30+
RUN rm -rf /opt/app-root/lib/python3.9/site-packages/social_core/tests/backends/test_apple.py && \
31+
rm -rf /opt/app-root/lib/python3.9/site-packages/tornado/test/test.key && \
32+
rm -rf /opt/app-root/lib/python3.9/site-packages/social_core/tests/backends/__pycache__/test_keycloak.cpython-39.pyc && \
33+
rm -rf /opt/app-root/lib/python3.9/site-packages/social_core/tests/backends/__pycache__/test_apple.cpython-39.pyc && \
34+
rm -rf /opt/app-root/lib/python3.9/site-packages/social_core/tests/testkey.pem && \
35+
rm -rf /opt/app-root/lib/python3.9/site-packages/social_core/tests/backends/test_keycloak.py
36+
37+
38+
USER 1001
39+
40+
# start server
41+
EXPOSE 8020
42+
STOPSIGNAL SIGTERM
243

3-
FROM registry1.dso.mil/ironbank/adl-ousd/ecc-openlxp/ecc-openlxp-xia-xis:1.0.1
444

0 commit comments

Comments
 (0)