-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from micro-infrastructure/master
Adjustments for LOBCDER
- Loading branch information
Showing
3 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
FROM python:3-buster | ||
ENV DIR="/UC3-Portal" | ||
ENV DIR="/mnt" | ||
RUN mkdir /home/user | ||
RUN groupadd -g 2222 user | ||
RUN useradd -s /bin/sh -g 2222 -u 3938873 user | ||
RUN chown -R user:user /home/user | ||
RUN git clone https://github.com/process-project/UC3-Portal.git | ||
WORKDIR /UC3-Portal/ | ||
RUN python setup.py install | ||
RUN python manage-db.py db init | ||
RUN python manage-db.py db migrate | ||
RUN python manage-db.py db upgrade | ||
RUN chown -R user:user /UC3-Portal | ||
USER user | ||
EXPOSE 8080 | ||
CMD python -m browsepy --debug 0.0.0.0 8080 --directory ${DIR} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.PHONY: all | ||
|
||
build: | ||
docker build -t microinfrastructure/process-uc3-portal:3938873 . | ||
|
||
run: build | ||
docker run -it microinfrastructure/process-uc3-portal:3938873 /bin/sh | ||
|
||
push: build | ||
docker push microinfrastructure/process-uc3-portal:3938873 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "uc3-portal-1", | ||
"namespace": "uc3", | ||
"dedicatedNode": false, | ||
"deployNode": "process-dss", | ||
"runAsUser":3938873, | ||
"runAsGroup":2222, | ||
"storageAdaptorContainers": [ | ||
|
||
], | ||
"initContainers": [], | ||
"logicContainers": [ | ||
{ | ||
"name": "lrz-portal", | ||
"type": "generic", | ||
"image": "microinfrastructure/process-uc3-portal:3938873", | ||
"env":[ | ||
{"name": "DIR", "value": "/mnt"} | ||
], | ||
"mountHost": [ | ||
{ "hostPath": "/mnt/dss", "mountPath": "/mnt" } | ||
], | ||
"port":8080, | ||
"service":{ | ||
"enabled": true | ||
}, | ||
"cmd":["python -m browsepy --debug 0.0.0.0 8080 --directory $DIR/process/UC3"] | ||
} | ||
] | ||
|
||
} |