From 61f25941e87394e308703da973042eabdc8cd6d0 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Sun, 15 May 2022 04:17:17 +0900 Subject: [PATCH] Install crowdin CLI using apt in buildenv --- .circleci/images/plume-buildenv/Dockerfile | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.circleci/images/plume-buildenv/Dockerfile b/.circleci/images/plume-buildenv/Dockerfile index f71e6f88..764bb7c4 100644 --- a/.circleci/images/plume-buildenv/Dockerfile +++ b/.circleci/images/plume-buildenv/Dockerfile @@ -6,8 +6,10 @@ RUN apt update &&\ apt install -y --no-install-recommends git ssh tar gzip ca-certificates default-jre&&\ echo "deb [trusted=yes] https://apt.fury.io/caddy/ /" \ | tee -a /etc/apt/sources.list.d/caddy-fury.list &&\ + wget -qO - https://artifacts.crowdin.com/repo/GPG-KEY-crowdin | apt-key add - &&\ + echo "deb https://artifacts.crowdin.com/repo/deb/ /" > /etc/apt/sources.list.d/crowdin.list &&\ apt update &&\ - apt install -y --no-install-recommends binutils-dev build-essential cmake curl gcc gettext git libcurl4-openssl-dev libdw-dev libelf-dev libiberty-dev libpq-dev libsqlite3-dev libssl-dev make openssl pkg-config postgresql postgresql-contrib python zlib1g-dev python3-pip zip unzip libclang-dev clang caddy&&\ + apt install -y --no-install-recommends binutils-dev build-essential cmake curl gcc gettext git libcurl4-openssl-dev libdw-dev libelf-dev libiberty-dev libpq-dev libsqlite3-dev libssl-dev make openssl pkg-config postgresql postgresql-contrib python zlib1g-dev python3-pip zip unzip libclang-dev clang caddy crowdin3 &&\ rm -rf /var/lib/apt/lists/* #compile some deps @@ -24,11 +26,3 @@ RUN pip3 install selenium #configure caddy COPY Caddyfile /Caddyfile - -#install crowdin -RUN mkdir /crowdin && cd /crowdin &&\ - curl -O https://downloads.crowdin.com/cli/v2/crowdin-cli.zip &&\ - unzip crowdin-cli.zip && rm crowdin-cli.zip &&\ - cd * && mv crowdin-cli.jar /usr/local/bin && cd && rm -rf /crowdin &&\ - /bin/echo -e '#!/bin/sh\njava -jar /usr/local/bin/crowdin-cli.jar $@' > /usr/local/bin/crowdin &&\ - chmod +x /usr/local/bin/crowdin