making Docker build resilient (#168)
Currently, if the user hasn't run `git submodule update --init` beforehand, the docker build will fail This little addition makes the build atomic and ready for automatic CI tests for the future
Этот коммит содержится в:
родитель
930de54dc5
коммит
70f1064f36
1 изменённых файлов: 4 добавлений и 1 удалений
|
@ -4,12 +4,15 @@ FROM golang:latest AS tinygo-base
|
||||||
RUN wget -O- https://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add - && \
|
RUN wget -O- https://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add - && \
|
||||||
echo "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-7 main" >> /etc/apt/sources.list && \
|
echo "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-7 main" >> /etc/apt/sources.list && \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y llvm-7-dev libclang-7-dev
|
apt-get install -y llvm-7-dev libclang-7-dev git
|
||||||
|
|
||||||
RUN wget -O- https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
RUN wget -O- https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||||
|
|
||||||
COPY . /go/src/github.com/tinygo-org/tinygo
|
COPY . /go/src/github.com/tinygo-org/tinygo
|
||||||
|
|
||||||
|
RUN cd /go/src/github.com/tinygo-org/tinygo/ && \
|
||||||
|
git submodule update --init
|
||||||
|
|
||||||
RUN cd /go/src/github.com/tinygo-org/tinygo/ && \
|
RUN cd /go/src/github.com/tinygo-org/tinygo/ && \
|
||||||
dep ensure --vendor-only && \
|
dep ensure --vendor-only && \
|
||||||
go install /go/src/github.com/tinygo-org/tinygo/
|
go install /go/src/github.com/tinygo-org/tinygo/
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче