Install flutter from source since apk doesn't work
Some checks failed
andreas-personal/jenkins-ssh-docker-agent/pipeline/head There was a failure building this commit
Some checks failed
andreas-personal/jenkins-ssh-docker-agent/pipeline/head There was a failure building this commit
This commit is contained in:
parent
a56f0a86e1
commit
5d4415b9a1
@ -17,7 +17,6 @@ RUN echo \
|
||||
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
|
||||
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y docker-ce-cli
|
||||
|
||||
# Install tea
|
||||
@ -26,7 +25,6 @@ RUN git clone https://gitea.com/gitea/tea.git
|
||||
RUN cd tea && make && make install
|
||||
|
||||
# Install flutter
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y\
|
||||
curl git wget \
|
||||
unzip libgconf-2-4 gdb \
|
||||
@ -51,5 +49,4 @@ RUN flutter upgrade
|
||||
USER root
|
||||
|
||||
#Install OpenSSL
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y openssl
|
||||
|
@ -9,8 +9,12 @@ RUN apk add --no-cache docker docker-compose
|
||||
RUN apk add --no-cache tea
|
||||
|
||||
# Install flutter
|
||||
RUN apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing flutter
|
||||
RUN git clone https://github.com/flutter/flutter.git /usr/local/flutter
|
||||
RUN git config --global --add safe.directory /usr/local/flutter
|
||||
|
||||
ENV PATH="/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:${PATH}"
|
||||
|
||||
RUN chown -R jenkins:jenkins /usr/local/flutter
|
||||
# Run flutter doctor and upgrade
|
||||
USER jenkins
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user