Commit 7a972d27 authored by Jørgen Lind's avatar Jørgen Lind
Browse files

Move docker files into its own directory

parent 92fe79ea
......@@ -20,7 +20,7 @@ devel-container:
tags: ['docker-runner']
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $SHA_IMAGE_TAG -f build-environment.Dockerfile .
- docker build -t $SHA_IMAGE_TAG -f docker/alpine-gitlab-ci.Dockerfile .
- docker push $SHA_IMAGE_TAG
only:
- master
......@@ -31,7 +31,7 @@ devel-container-merge-request:
tags: ['docker-runner']
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $SHA_IMAGE_TAG -f build-environment.Dockerfile .
- docker build -t $SHA_IMAGE_TAG -f docker/alpine-gitlab-ci.Dockerfile .
- docker push $SHA_IMAGE_TAG
only:
- merge_requests
......
This folder contains the different docker files used for building OpenVDS for different distributions
There is also a devenv docker file setting up a minimal developement environment. Following are some basic instructions for setting up the development environment on Windows.
1. Build an image.
From the root OpenVDS source folder write the following command:
$ docker build --tag ovds-alpine-devenv -f docker/alpine-devenv.Dockerfile .
$ docker volume create ovds-alpine-devenv
The volume is used to create a persistant storage so not all is lost between sessions
2. Add configuration to Windows Terminal
Everything should be ready, so now its possible to add a configuration to your WindowsTerminal settings.
```
{
"guid": "{b453ae62-4e3d-5e58-b989-aaa98ec441b8}",
"hidden": false,
"name": "Alpine OpenVDS",
"commandline": "docker run -it --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v C:/Projects:/windows_projects_folder -v ovds-alpine-devenv:/work --workdir /work ovds-alpine-devenv"
}
```
Hack away!!!
Its a good idea to clone your OpenVDS repository from your local Windows projects into the work dir for performance reasons.
FROM alpine:latest
# Install the various required packages
RUN apk add python3 python3-dev py3-pip gcc g++ cmake make ninja git ccache doxygen openjdk8 \
libxml2-dev boost-dev zlib-dev openssl-dev curl-dev libuv-dev \
util-linux-dev # This package contains the uuid development headers
#these are the extra developmen packages
RUN apk add \
gdb vim bash
ENV JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
ENV PATH="$JAVA_HOME/bin:${PATH}"
# Copy the python requirement list into the container and download the packages
COPY python/requirements-dev-with-docs.txt /tmp/requirements-dev.txt
RUN pip3 install -r tmp/requirements-dev.txt
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment