docker.com/products/docker-desktop
tapui.prod.platform.target.com
git.target.com/RedOptHaskell/python-docker-vela-tap
# Set base image (host OS)
FROM python:3.8
# Copy the dependencies file to the working directory
COPY requirements.txt .
# Install dependencies
RUN pip install -r requirements.txt
# Copy the content of the local src directory to the working directory
COPY src/ .
# Command to run on container start
CMD [ "python", "./server.py" ]
$ docker build -t tap .
$ docker run -p8080:8080 tap
Dockerfile
Terminal
version: "1"
steps:
- name: test
ruleset:
event: push
image: python:3.8
commands:
- python test.py
Activate repository:
vela.prod.target.com
.vela.yml
tapui.prod.platform.target.com
version: "1"
steps:
- name: test
ruleset:
event: push
image: python:3.8
commands:
- python test.py
- name: build and push docker image
ruleset:
event: push
image: docker.target.com/vela-plugins/kaniko:v0.6.0-1
secrets:
- docker_password
parameters:
dockerfile: Dockerfile
registry: docker.target.com
repo: docker.target.com/app/<app_name>
username: svcpejkn001
tags:
- latest
- test-${VELA_BUILD_NUMBER}
secrets:
- name: docker_password
key: tap/vela-secrets/ARTIFACTORY_SVCPEJKN001_BINREPO
engine: native
type: shared