UNCLASSIFIED

Commit a0dbb5ac authored by Al Fontaine's avatar Al Fontaine
Browse files

Merge branch 'development' into 'master'

Development

See merge request !23
parents 30e8886b 171c3356
Pipeline #278464 failed with stages
in 5 minutes and 20 seconds
ARG BASE_REGISTRY=registry1.dsop.mil ARG BASE_REGISTRY=registry1.dsop.mil
ARG BASE_IMAGE=redhat/ubi/ubi8 ARG BASE_IMAGE=redhat/ubi/ubi8
ARG BASE_TAG=8.3 ARG BASE_TAG=8.4
FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
ARG VERSION=1.2.1 ARG VERSION=1.6.0
ARG USERNAME=benjo ARG USERNAME=benjo
ARG GROUPNAME=benjo ARG GROUPNAME=benjo
ARG UID=1000 ARG UID=1000
ARG GID=1000 ARG GID=1000
USER root USER root
WORKDIR /tmp WORKDIR /tmp
COPY \ COPY \
LICENSE \ LICENSE \
README.md \ README.md \
courseware-editor.tar.gz \ courseware-editor.tar.gz \
config/appsettings.json \ config/appsettings.json \
config/config.json \ config/config.json \
dumb-init \ dumb-init \
scripts/start.sh \ scripts/start.sh \
./ ./
RUN groupadd --gid $GID $GROUPNAME && \ RUN groupadd --gid $GID $GROUPNAME && \
useradd --uid $UID --gid $GID $USERNAME && \ useradd --uid $UID --gid $GID $USERNAME && \
yum install -y libicu curl && \ yum install -y libicu curl && \
yum clean all && \ yum clean all && \
rm -rf /var/cache/dnf && \ rm -rf /var/cache/dnf && \
tar -zxf courseware-editor.tar.gz && \ tar -zxf courseware-editor.tar.gz && \
chown -R $UID:$GID /tmp/* && \ chown -R $UID:$GID /tmp/* && \
chmod 755 dumb-init start.sh && \ chmod 755 dumb-init start.sh && \
mv courseware-editor /courseware-editor && \ mv courseware-editor /courseware-editor && \
mv config.json /courseware-editor && \ mv config.json /courseware-editor && \
mv start.sh /courseware-editor && \ mv start.sh /courseware-editor && \
mv dumb-init /usr/local/bin && \ mv dumb-init /usr/local/bin && \
mv LICENSE README.md /courseware-editor && \ mv LICENSE README.md /courseware-editor && \
rm -rf ./* rm -rf ./*
WORKDIR /courseware-editor WORKDIR /courseware-editor
ENV WORKSPACE_PATH=/modules ENV WORKSPACE_PATH=/modules
USER $UID:$GID USER $UID:$GID
EXPOSE 1337 EXPOSE 1337
HEALTHCHECK --interval=12s --timeout=10s --start-period=30s \ HEALTHCHECK --interval=12s --timeout=10s --start-period=30s \
CMD curl --fail http://localhost/api/v1/heartbeat || exit 1 CMD curl --fail http://localhost/api/v1/heartbeat || exit 1
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"] ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
WORKDIR /courseware-editor/server WORKDIR /courseware-editor/server
CMD ["/courseware-editor/start.sh"] CMD ["/courseware-editor/start.sh"]
...@@ -8,13 +8,13 @@ name: "beast-code/courseware-editor/base-image" ...@@ -8,13 +8,13 @@ name: "beast-code/courseware-editor/base-image"
# The most specific version should be the first tag and will be shown # The most specific version should be the first tag and will be shown
# on ironbank.dsop.io # on ironbank.dsop.io
tags: tags:
- "1.4.0" - "1.6.0"
- "latest" - "latest"
# Build args passed to Dockerfile ARGs # Build args passed to Dockerfile ARGs
args: args:
BASE_IMAGE: "redhat/ubi/ubi8" BASE_IMAGE: "redhat/ubi/ubi8"
BASE_TAG: "8.3" BASE_TAG: "8.4"
# Docker image labels # Docker image labels
labels: labels:
...@@ -27,7 +27,7 @@ labels: ...@@ -27,7 +27,7 @@ labels:
org.opencontainers.image.url: "https://beast-code.com/products/courseware-editor" org.opencontainers.image.url: "https://beast-code.com/products/courseware-editor"
## Name of the distributing entity, organization or individual ## Name of the distributing entity, organization or individual
org.opencontainers.image.vendor: "Beast Code, LLC" org.opencontainers.image.vendor: "Beast Code, LLC"
org.opencontainers.image.version: "1.4.0" org.opencontainers.image.version: "1.6.0"
## Keywords to help with search (ex. "cicd,gitops,golang") ## Keywords to help with search (ex. "cicd,gitops,golang")
mil.dso.ironbank.image.keywords: "digital twin, 3D" mil.dso.ironbank.image.keywords: "digital twin, 3D"
## This value can be "opensource" or "commercial" ## This value can be "opensource" or "commercial"
...@@ -44,7 +44,7 @@ resources: ...@@ -44,7 +44,7 @@ resources:
url: s3://beast-code.core/courseware-editor.tar.gz url: s3://beast-code.core/courseware-editor.tar.gz
validation: validation:
type: sha256 type: sha256
value: 24889fe86f7c1e04138228a1e6ceea58b65eb5f93e7843edda33292408918b5a value: 5f5ecddea2447892ea4fb50a7e1ed90fecc48fb7831655cbdeb66c89e4f860aa
- auth: - auth:
id: beast id: beast
region: us-east-2 region: us-east-2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment