Skip to content

Commit

Permalink
Merge pull request #18 from AckeeDevOps/feat/debian-update
Browse files Browse the repository at this point in the history
⬆️ Upgrade debian, gradle and kotlin
  • Loading branch information
beranm14 authored May 22, 2023
2 parents 755dade + 423dc79 commit 2c50ebf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v2.0.0] - 2023-05-22
### Changed
- Debian `stretch` to `buster` due to apt mirror missing packages
- Updated danger to work with current gradle
- Updated kotlin
### Add
- Exception for root build of `/opt/flutter` to avoid `flutter doctor` error

## [v1.4.0] - 2023-05-22
### Changed
- Update to Java 17
Expand Down
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:stretch
FROM debian:buster

LABEL tag="ackee-gitlab" \
author="Ackee 🦄" \
Expand Down Expand Up @@ -79,16 +79,16 @@ RUN apt-get update && apt-get install -y \
make

# install danger-js which is needed for danger-kotlin to work
RUN npm install -g danger@10.2.1
RUN npm install -g danger@11.2.6

# install kotlin compiler
RUN curl -o kotlin-compiler.zip -L https://github.com/JetBrains/kotlin/releases/download/v1.4.10/kotlin-compiler-1.4.10.zip && \
RUN curl -o kotlin-compiler.zip -L https://github.com/JetBrains/kotlin/releases/download/v1.8.21/kotlin-compiler-1.8.21.zip && \
unzip -d /usr/local/ kotlin-compiler.zip && \
rm -rf kotlin-compiler.zip

# install danger-kotlin
RUN git clone https://github.com/danger/kotlin.git _danger-kotlin && \
cd _danger-kotlin && git checkout 0.7.1 && \
cd _danger-kotlin && git checkout 1.2.0 && \
make install && \
cd .. && \
rm -rf _danger-kotlin
Expand All @@ -105,6 +105,7 @@ ENV FLUTTER_HOME="/opt/flutter"
RUN curl -o flutter.tar.xz $FLUTTER_URL \
&& mkdir -p $FLUTTER_HOME \
&& tar xf flutter.tar.xz -C /opt \
&& git config --global --add safe.directory /opt/flutter \
&& rm flutter.tar.xz

ENV PATH=$PATH:$FLUTTER_HOME/bin
Expand Down

0 comments on commit 2c50ebf

Please sign in to comment.