Skip to content
Snippets Groups Projects
Commit 99d8aece authored by Eduard Staniloiu's avatar Eduard Staniloiu
Browse files

Add Dockerfile for python labs

parent f941957b
Branches py_lab_docker
No related tags found
No related merge requests found
FROM ubuntu:20.04
LABEL maintainer="stefan_dan.ciocirlan@upb.ro,eduard.staniloiu@upb.ro" \
name="ASC Grid - Labs Docker Image" \
version="${VERSION}"
ENV DEBIAN_FRONTEND="noninteractive"
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install python3-pip -y
RUN apt-get install nano -y
RUN apt-get install git -y
RUN apt-get install unzip -y
RUN apt-get install wget -y
RUN python3 -m pip install -U pip
RUN python3 -m pip install -U pylint
ENV DISPLAY=host.docker.internal:0.0
WORKDIR /app
version=1.0.0
registry=gitlab.cs.pub.ro:5050/asc/asc-public
img_name=python-labs
tag_name=${registry}/${img_name}:${version}
#tag_name=edi33416/test-asc:${img_name}-${version}
build:
docker image build -t ${tag_name} --build-arg VERSION=${version} .
test: build
docker run --rm --name ${img_name} ${tag_name}
run: build
docker run -it --name ${img_name} -e QT_DEBUG_PLUGINS=1 ${tag_name} /bin/bash
bash:
docker exec -it ${img_name} /bin/bash
push:
docker push ${tag_name}
clean:
docker rm -f ${img_name}
docker image rm ${tag_name}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment