Skip to content

Commit

Permalink
Merge pull request #1 from micro-infrastructure/master
Browse files Browse the repository at this point in the history
Adjustments for LOBCDER
  • Loading branch information
schmidtja authored Oct 30, 2020
2 parents 2611d17 + eb9e6b0 commit cc86068
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
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}

11 changes: 11 additions & 0 deletions Makefile
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

31 changes: 31 additions & 0 deletions portal-pod-on-lrz.json
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"]
}
]

}

0 comments on commit cc86068

Please sign in to comment.