fix: 💚 Fix Flutter build on alpine image, and AutoFormatter for Dockerfile, and vscode workspace
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:
8
.vscode/jenkins-ssh-docker-agent.code-workspace
vendored
Normal file
8
.vscode/jenkins-ssh-docker-agent.code-workspace
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"path": ".."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"settings": {}
|
||||||
|
}
|
12
Dockerfile
12
Dockerfile
@ -4,8 +4,7 @@ RUN groupadd -g 281 docker
|
|||||||
RUN usermod -aG docker jenkins
|
RUN usermod -aG docker jenkins
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y\
|
RUN apt-get install -y ca-certificates \
|
||||||
ca-certificates \
|
|
||||||
curl \
|
curl \
|
||||||
gnupg
|
gnupg
|
||||||
|
|
||||||
@ -14,8 +13,8 @@ RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /
|
|||||||
|
|
||||||
RUN echo \
|
RUN echo \
|
||||||
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
|
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
|
||||||
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
|
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" |
|
||||||
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
tee /etc/apt/sources.list.d/docker.list >/dev/null
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y docker-ce-cli
|
RUN apt-get install -y docker-ce-cli
|
||||||
@ -26,8 +25,7 @@ RUN apt-get install -y docker-ce-cli
|
|||||||
# RUN cd tea && make && make install
|
# RUN cd tea && make && make install
|
||||||
|
|
||||||
# Install flutter
|
# Install flutter
|
||||||
RUN apt-get install -y\
|
RUN apt-get install -y curl git wget \
|
||||||
curl git wget \
|
|
||||||
unzip libgconf-2-4 gdb \
|
unzip libgconf-2-4 gdb \
|
||||||
libstdc++6 libglu1-mesa fonts-droid-fallback \
|
libstdc++6 libglu1-mesa fonts-droid-fallback \
|
||||||
lib32stdc++6 python3 sed
|
lib32stdc++6 python3 sed
|
||||||
@ -48,7 +46,7 @@ RUN flutter channel master
|
|||||||
RUN flutter upgrade
|
RUN flutter upgrade
|
||||||
|
|
||||||
RUN dart pub global activate flutter_distributor
|
RUN dart pub global activate flutter_distributor
|
||||||
RUN echo 'export PATH="$PATH:`dart pub global path`"' >> ~/.bashrc
|
RUN echo 'export PATH="$PATH:`dart pub global path`"' >>~/.bashrc
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
@ -8,6 +8,16 @@ RUN apk add --no-cache docker docker-compose
|
|||||||
# Install tea
|
# Install tea
|
||||||
RUN apk add --no-cache tea
|
RUN apk add --no-cache tea
|
||||||
|
|
||||||
|
# Install glibc compatibility for Flutter/Dart
|
||||||
|
RUN apk --no-cache add ca-certificates wget
|
||||||
|
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
|
||||||
|
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.34-r0/glibc-2.34-r0.apk
|
||||||
|
RUN apk add --force-overwrite glibc-2.34-r0.apk
|
||||||
|
RUN rm glibc-2.34-r0.apk
|
||||||
|
|
||||||
|
# Install flutter dependencies
|
||||||
|
RUN apk --no-cache add bash curl git unzip libstdc++
|
||||||
|
|
||||||
# Install flutter
|
# Install flutter
|
||||||
RUN apk --no-cache add bash curl git ca-certificates wget unzip
|
RUN apk --no-cache add bash curl git ca-certificates wget unzip
|
||||||
RUN git clone https://github.com/flutter/flutter.git /usr/local/flutter
|
RUN git clone https://github.com/flutter/flutter.git /usr/local/flutter
|
||||||
@ -25,7 +35,7 @@ RUN flutter channel master
|
|||||||
RUN flutter upgrade
|
RUN flutter upgrade
|
||||||
|
|
||||||
RUN dart pub global activate flutter_distributor
|
RUN dart pub global activate flutter_distributor
|
||||||
RUN echo 'export PATH="$PATH:`dart pub global path`"' >> /etc/profile
|
RUN echo 'export PATH="$PATH:`dart pub global path`"' >>/etc/profile
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user