Added Dockerfile i used for creating custom docker image for Bitbucket
Pipelines Beta. --HG-- branch : develop
This commit is contained in:
parent
d2750b2d78
commit
77e0e4dd2e
31
dist/docker/Dockerfile
vendored
Normal file
31
dist/docker/Dockerfile
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
FROM gcc
|
||||
MAINTAINER Roman Telezhynskyi <dismine@gmail.com>
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
cppcheck \
|
||||
locales \
|
||||
xvfb \
|
||||
qtbase5-dev \
|
||||
libqt5svg5-dev \
|
||||
qt5-default \
|
||||
qttools5-dev-tools \
|
||||
libqt5xmlpatterns5-dev \
|
||||
libqt5core5a \
|
||||
libqt5gui5 \
|
||||
libqt5printsupport5 \
|
||||
libqt5svg5 \
|
||||
libqt5widgets5 \
|
||||
libqt5xml5 \
|
||||
libqt5xmlpatterns5 \
|
||||
xpdf \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Whatever you need more than what is on the base image required by your project
|
||||
|
||||
# Set the locale
|
||||
RUN dpkg-reconfigure locales && \
|
||||
locale-gen en_US.UTF-8
|
||||
|
||||
ENV LANG en_US.UTF-8
|
||||
ENV LANGUAGE en_US:en
|
||||
ENV LC_ALL en_US.UTF-8
|
31
dist/docker/README
vendored
Normal file
31
dist/docker/README
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
There are some steps required to create your own docker image.
|
||||
|
||||
1. Have a Docker hub account, https://hub.docker.com/
|
||||
2. Install docker.io package on 64 bit system.
|
||||
3. Create a Dockerfile. You will find one in this directory.
|
||||
4. Build the image from Dockerfile.
|
||||
5. Push the image to Docker hub.
|
||||
6. Specify the image in your bitbucket-pipelines.yml file
|
||||
|
||||
1 Docker hub account
|
||||
Well, sign up here =) https://hub.docker.com/
|
||||
|
||||
2 Install docker
|
||||
sudo apt-get install docker.io
|
||||
|
||||
3 Create Dockerfile
|
||||
Find example in this directory.
|
||||
|
||||
4 Build docker image
|
||||
In the same directory as you have your Dockerfile, run command:
|
||||
docker build -t yourdockerusername/imagename .
|
||||
|
||||
5 Push image to Docker hub
|
||||
Run command
|
||||
docker push yourdockerusername/imagename
|
||||
|
||||
6 Specify the image in your bitbucket-pipelines.yml file
|
||||
As documented here: https://confluence.atlassian.com/display/BITBUCKET/Use+Docker+images+as+build+environments+in+Bitbucket+Pipelines
|
||||
|
||||
You can use your image on a top level as well as on a specific step like this.
|
||||
image: yourdockerusername/imagename
|
Loading…
Reference in New Issue
Block a user