Refrsesh docker image.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-04-03 15:10:56 +03:00
parent a2ff65d8fb
commit 37b07c1512
3 changed files with 12 additions and 9 deletions

View File

@ -11,8 +11,6 @@ pipelines:
- cat /etc/*-release - cat /etc/*-release
- uname -a - uname -a
- grep -i processor /proc/cpuinfo | wc -l - grep -i processor /proc/cpuinfo | wc -l
- sed -i '/jessie-updates/d' /etc/apt/sources.list
- apt-get update && apt-get install -y qtbase5-dev libqt5svg5-dev qt5-default qttools5-dev-tools libqt5xmlpatterns5-dev libqt5core5a libqt5gui5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5xml5 libqt5xmlpatterns5 xpdf xvfb
- gcc --version - gcc --version
- mkdir build - mkdir build
- cd build - cd build

View File

@ -1,4 +1,4 @@
FROM gcc FROM gcc:latest
MAINTAINER Roman Telezhynskyi <dismine@gmail.com> MAINTAINER Roman Telezhynskyi <dismine@gmail.com>
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \

17
dist/docker/README vendored
View File

@ -4,8 +4,9 @@ There are some steps required to create your own docker image.
2. Install docker.io package on 64 bit system. 2. Install docker.io package on 64 bit system.
3. Create a Dockerfile. You will find one in this directory. 3. Create a Dockerfile. You will find one in this directory.
4. Build the image from Dockerfile. 4. Build the image from Dockerfile.
5. Push the image to Docker hub. 5. Login on Docker hub
6. Specify the image in your bitbucket-pipelines.yml file 6. Push the image to Docker hub.
7. Specify the image in your bitbucket-pipelines.yml file
1 Docker hub account 1 Docker hub account
Well, sign up here =) https://hub.docker.com/ Well, sign up here =) https://hub.docker.com/
@ -18,13 +19,17 @@ Find example in this directory.
4 Build docker image 4 Build docker image
In the same directory as you have your Dockerfile, run command: In the same directory as you have your Dockerfile, run command:
docker build -t yourdockerusername/imagename . sudo docker build -t yourdockerusername/imagename .
5 Push image to Docker hub 5 Login on Docker hub
Before publishing you must login on Docker hub
sudo docker login
6 Push image to Docker hub
Run command Run command
docker push yourdockerusername/imagename sudo docker push yourdockerusername/imagename
6 Specify the image in your bitbucket-pipelines.yml file 7 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 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. You can use your image on a top level as well as on a specific step like this.