mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +00:00
Build this specific branch for the experiment
This commit is contained in:
parent
cbb2498dc4
commit
306129380d
@ -33,9 +33,7 @@
|
|||||||
#
|
#
|
||||||
# If you want to make changes in the source code, please branch-off from the
|
# If you want to make changes in the source code, please branch-off from the
|
||||||
# 'next' branch of your forked repository and, if needed, add new jobs in this
|
# 'next' branch of your forked repository and, if needed, add new jobs in this
|
||||||
# file at the 'deploy' and 'experiment' stages. You can also change the
|
# file at the 'deploy' and 'experiment' stages.
|
||||||
# DOCKERFILE_URL variable below if your changes in the source code require extra
|
|
||||||
# packages or build steps.
|
|
||||||
#
|
#
|
||||||
# Feel free to delete the docker-gnsssdr and docker-pybombs-gnsssdr jobs,
|
# Feel free to delete the docker-gnsssdr and docker-pybombs-gnsssdr jobs,
|
||||||
# they are for developers' team only. Actually, this is their CI/CD system.
|
# they are for developers' team only. Actually, this is their CI/CD system.
|
||||||
@ -45,11 +43,8 @@
|
|||||||
#
|
#
|
||||||
# (C) Carles Fernandez-Prades, 2018 cfernandez@cttc.cat
|
# (C) Carles Fernandez-Prades, 2018 cfernandez@cttc.cat
|
||||||
|
|
||||||
variables:
|
|
||||||
DOCKERFILE_URL: "https://raw.githubusercontent.com/carlesfernandez/docker-gnsssdr/master/Dockerfile"
|
|
||||||
|
|
||||||
|
# This is performed before the scripts in the stages step
|
||||||
# Is performed before the scripts in the stages step
|
|
||||||
before_script:
|
before_script:
|
||||||
- source /etc/profile
|
- source /etc/profile
|
||||||
|
|
||||||
@ -219,15 +214,14 @@ docker-pybombs-gnsssdr:
|
|||||||
|
|
||||||
docker-access18:
|
docker-access18:
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
stage: deploy
|
stage: build
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
script:
|
script:
|
||||||
- wget $DOCKERFILE_URL
|
|
||||||
- docker login -u "$DOCKER_HUB_USER" -p "$DOCKER_HUB_PASSWORD"
|
- docker login -u "$DOCKER_HUB_USER" -p "$DOCKER_HUB_PASSWORD"
|
||||||
- mkdir docker-build
|
- mkdir docker-build
|
||||||
- cd docker-build
|
- cd docker-build
|
||||||
- cp ../Dockerfile .
|
- echo -e "FROM phusion/baseimage:0.10.0\nMAINTAINER carles.fernandez@cttc.es\nCMD [\"/sbin/my_init\"]\nWORKDIR /home/src\nRUN apt-get update && apt-get install -y build-essential cmake libarmadillo-dev libblas-dev libboost-chrono-dev libboost-dev libboost-date-time-dev libboost-filesystem-dev libboost-serialization-dev libboost-system-dev libboost-thread-dev libgflags-dev libgoogle-glog-dev libgtest-dev libgnutls-openssl-dev liblapack-dev liblog4cpp5-dev libmatio-dev libuhd-dev git gnuradio-dev gr-osmosdr python-mako python-six libxml2-dev bison flex && rm -rf /var/lib/apt/lists/*\nRUN git clone $CI_REPOSITORY_URL\nRUN cd gnss-sdr/build\nRUN git checkout $CI_COMMIT_SHA\nRUN cmake -DENABLE_PACKAGING=ON -DENABLE_INSTALL_TESTS=ON .. && make && make install\nRUN /usr/bin/volk_profile -v 8111\nRUN /usr/local/bin/volk_gnsssdr_profile\nRUN apt-get clean && rm -rf /tmp/* /var/tmp/*\nRUN rm -rf /home/src\nWORKDIR /home\nCMD [\"bash\"]" > Dockerfile
|
||||||
- docker build -t $DOCKER_HUB_USER/$DOCKER_HUB_REPO .
|
- docker build -t $DOCKER_HUB_USER/$DOCKER_HUB_REPO .
|
||||||
- docker tag $DOCKER_HUB_USER/$DOCKER_HUB_REPO:latest $DOCKER_HUB_USER/$DOCKER_HUB_REPO:access18
|
- docker tag $DOCKER_HUB_USER/$DOCKER_HUB_REPO:latest $DOCKER_HUB_USER/$DOCKER_HUB_REPO:access18
|
||||||
- docker push $DOCKER_HUB_USER/$DOCKER_HUB_REPO:access18
|
- docker push $DOCKER_HUB_USER/$DOCKER_HUB_REPO:access18
|
||||||
|
Loading…
Reference in New Issue
Block a user