initial
This commit is contained in:
commit
fc978ccc37
22
.gitlab-ci.yml
Normal file
22
.gitlab-ci.yml
Normal 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
27
Dockerfile
Normal 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" ]
|
Loading…
x
Reference in New Issue
Block a user