Skip to content

Commit

Permalink
JB and Per pydantic
Browse files Browse the repository at this point in the history
  • Loading branch information
JB Lovland committed Jan 22, 2024
1 parent 8fb8e3f commit 631de8b
Show file tree
Hide file tree
Showing 7 changed files with 678 additions and 180 deletions.
20 changes: 3 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
FROM nginxinc/nginx-unprivileged:alpine

ARG uriprefix
ENV URIPREFIX=${uriprefix}

WORKDIR /app
USER 0

RUN apk update
RUN apk upgrade
RUN apk add jq

COPY schema/definitions definitions/
RUN chown -R 101:101 .

COPY schema/app/install-schema-files.sh /docker-entrypoint.d/50-install-schema-files.sh
RUN chmod +x /docker-entrypoint.d/50-install-schema-files.sh

COPY schema/app/fmu-schemas.conf /etc/nginx/conf.d

RUN rm /etc/nginx/conf.d/default.conf
COPY schema/app/fmu-schemas.conf /etc/nginx/conf.d
COPY schema/definitions schemas/
RUN chown -R 101:101 .

EXPOSE 8080
USER 101
CMD ["nginx", "-g", "daemon off;"]

# CMD "/bin/sh"
1 change: 1 addition & 0 deletions ex.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def read(file):
with open(file) as f:
return f.read()


for file in (f.strip() for f in sys.stdin.readlines()):
print(file)
try:
Expand Down
2 changes: 2 additions & 0 deletions radixconfig.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/equinor/radix-operator/release/json-schema/radixapplication.json
# Only works if the redhat yaml ext. in vs-code is installed.
apiVersion: radix.equinor.com/v1
kind: RadixApplication
metadata:
Expand Down
36 changes: 0 additions & 36 deletions schema/app/install-schema-files.sh

This file was deleted.

Loading

0 comments on commit 631de8b

Please sign in to comment.