-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from menny/yaml-lint
Adding `yamllint`
- Loading branch information
Showing
6 changed files
with
44 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,11 +15,15 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: lint | ||
uses: luke142367/[email protected] | ||
with: | ||
target: Dockerfile android_base/Dockerfile android_bazel/Dockerfile android_ndk/Dockerfile | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Base Android image | ||
env: | ||
SQUASH_IMAGE: SQUASH | ||
run: IMAGE_NAME="android_base" DOCKER_FILE_PATH="android_base/." ./.github/docker_build_image.sh | ||
- name: Android image with some tools | ||
run: IMAGE_NAME="android" DOCKER_FILE_PATH="." ./.github/docker_build_image.sh | ||
- name: Android and NDK image | ||
run: IMAGE_NAME="android_ndk" NDK_VERSION="23.0.7599858" DOCKER_FILE_PATH="android_ndk/." ./.github/docker_build_image.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,39 +6,38 @@ LABEL version="${IMAGE_VERSION}" | |
LABEL maintainer="[email protected]" | ||
|
||
# disable interactive functions | ||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV TERM dumb | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV TERM=dumb | ||
|
||
# Install Deps and build-essential | ||
RUN apt-get update \ | ||
&& apt-get install -y --allow-remove-essential --allow-change-held-packages \ | ||
&& apt-get install -y --allow-remove-essential --allow-change-held-packages --no-install-recommends \ | ||
locales software-properties-common ca-certificates build-essential zlib1g-dev \ | ||
pkg-config file \ | ||
python3 python3-pip python3-lxml python3-yaml libxml2-utils \ | ||
wget curl nano rsync sudo zip psmisc rsyslog jq unzip \ | ||
python3 python3-pip python3-lxml python3-yaml libxml2-utils yamllint \ | ||
wget curl nano rsync zip psmisc rsyslog jq unzip \ | ||
imagemagick \ | ||
java-common \ | ||
&& apt-get clean | ||
# this is required for the latest git (ubuntu's official git is quite old) | ||
RUN add-apt-repository ppa:git-core/ppa -y \ | ||
&& apt-get install -y --allow-remove-essential --allow-change-held-packages git \ | ||
&& apt-get clean | ||
&& add-apt-repository ppa:git-core/ppa -y \ | ||
&& apt-get install git -y --allow-remove-essential --allow-change-held-packages --no-install-recommends \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN touch /var/log/kern.log ; chown syslog:adm /var/log/kern.log | ||
|
||
RUN locale-gen en_US.UTF-8 | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
ENV LANG=en_US.UTF-8 | ||
ENV LANGUAGE=en_US:en | ||
ENV LC_ALL=en_US.UTF-8 | ||
|
||
RUN mkdir -p /opt | ||
WORKDIR /opt | ||
COPY tools /opt/tools | ||
RUN chmod +x /opt/tools/start_emulator.sh | ||
|
||
# Setup environment | ||
ENV ANDROID_HOME /opt/android-sdk-linux | ||
ENV PATH ${PATH}:${ANDROID_HOME}/cmdline-tools/latest/bin:${ANDROID_HOME}/platform-tools | ||
ENV ANDROID_HOME=/opt/android-sdk-linux | ||
ENV PATH=${PATH}:${ANDROID_HOME}/cmdline-tools/latest/bin:${ANDROID_HOME}/platform-tools | ||
|
||
# Setup Java | ||
RUN curl https://corretto.aws/downloads/resources/17.0.10.8.1/java-17-amazon-corretto-jdk_17.0.10.8-1_amd64.deb -o jdk-corretto.deb \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters