Commit 9f7f788e authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CI] unify docker images build instructions

parent 4178084a
Setup
-----
1 Checkout the branch you are interested in.
2 From the root of the repository, run (update version number and branch)
```
docker build -t eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/ubuntu:14.04 -f .dockers/ubuntu-14.04/Dockerfile .
docker build -t eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/devel-premade:14.04 -f .dockers/ubuntu-14.04/Dockerfile.premade .
```
3. Push the docker image:
```
# Eventually, login before push
# docker login eur0c.laas.fr
docker push eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/devel-premade:14.04
```
docker build -t eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/ubuntu:16.04 -f .dockers/ubuntu-16.04/Dockerfile .
docker build -t eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/devel-premade:16.04 -f .dockers/ubuntu-16.04/Dockerfile.premade .
docker login eur0c.laas.fr:4567
docker push eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/devel-premade:16.04
FROM eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/ubuntu:14.04
FROM gepgitlab.laas.fr:4567/humanoid-path-planner/hpp-doc/ubuntu:14.04
RUN \
export DEVEL_DIR=/builds/humanoid-path-planner/hpp-doc/workspace; \
......
FROM ubuntu:16.04
RUN apt-get update -qqy && apt-get install -qqy \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN echo "deb http://packages.ros.org/ros/ubuntu xenial main" > /etc/apt/sources.list.d/ros-latest.list
RUN apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
......
FROM eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/ubuntu:16.04
FROM gepgitlab.laas.fr:4567/humanoid-path-planner/hpp-doc/ubuntu:16.04
RUN export DEVEL_HPP_DIR=/builds/humanoid-path-planner/hpp-doc/workspace; \
/auto-install-hpp.sh --branch devel --target OpenSceneGraph-dae-plugin.install
......
......@@ -20,8 +20,12 @@ or [these instructions](doc/instructions.md).
## Build docker images for CI
```
docker build -t eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/master:14.04 .
docker build -t eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/master-premade:14.04 -f Dockerfile.premade .
docker push eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/master:14.04
docker push eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/master-premade:14.04
branch=$(git branch --no-color | grep \* | cut -d' ' -f2)
for ubuntu in 14.04 16.04
do
docker build -t gepgitlab.laas.fr:4567/humanoid-path-planner/hpp-doc/ubuntu:${ubuntu} -f .dockers/ubuntu-${ubuntu}/Dockerfile .
docker build -t gepgitlab.laas.fr:4567/humanoid-path-planner/hpp-doc/${branch}-premade:${ubuntu} -f .dockers/ubuntu-${ubuntu}/Dockerfile.premade .
docker push gepgitlab.laas.fr:4567/humanoid-path-planner/hpp-doc/ubuntu:${ubuntu}
docker push gepgitlab.laas.fr:4567/humanoid-path-planner/hpp-doc/${branch}-premade:${ubuntu}
done
```
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