This commit is contained in:
Wolfgang Hottgenroth 2019-04-09 13:56:34 +02:00
commit fc978ccc37
Signed by: wn
GPG Key ID: B586EAFCDF2F65F4
3 changed files with 50 additions and 0 deletions

22
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,22 @@
image: docker:stable
stages:
- build
variables:
IMAGE_NAME: registry.gitlab.com/wolutator/build-env-arduino-esp8266
build:
stage: build
tags:
- hottis
- linux
- docker
script:
- VERSION=`cat VERSION`
- echo "Version is $VERSION"
- docker build --tag $IMAGE_NAME:latest --tag $IMAGE_NAME:$VERSION .
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker push $IMAGE_NAME:latest
- docker push $IMAGE_NAME:$VERSION

27
Dockerfile Normal file
View File

@ -0,0 +1,27 @@
FROM registry.gitlab.com/wolutator/base-build-env:latest
LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
LABEL ImageName="registry.gitlab.com/wolutator/build-env-arduino-esp8266"
ENV ARDUINO_VERSION=arduino-1.8.7
ARG WORKDIR="/opt/arduino"
RUN \
apt update && \
apt install -y wget && \
rm -rf /var/lib/apt/lists/* && \
mkdir -p ${WORKDIR}
WORKDIR ${WORKDIR}
RUN \
wget https://downloads.arduino.cc/$ARDUINO_VERSION-linux64.tar.xz && \
tar -xf $ARDUINO_VERSION-linux64.tar.xz && \
rm $ARDUINO_VERSION-linux64.tar.xz && \
$ARDUINO_VERSION/install.sh && \
$ARDUINO_VERSION/arduino --pref "boardsmanager.additional.urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json" --save-prefs && \
$ARDUINO_VERSION/arduino --install-boards esp8266:esp8266 --save-prefs
ENV PATH "$PATH:/${WORKDIR}/${ARDUINO_VERSION}"
ENTRYPOINT [ "/bin/bash" ]

1
VERSION Normal file
View File

@ -0,0 +1 @@
0.0.1