Skip to content

Commit

Permalink
fix download data
Browse files Browse the repository at this point in the history
  • Loading branch information
storytellerF committed Oct 29, 2024
1 parent ea7a390 commit ce6caa7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM eclipse-temurin:21 AS builder

RUN apt-get update && apt-get install -y \
unzip

#^3
ARG IS_PROD
ARG FLAVOR
Expand Down
7 changes: 6 additions & 1 deletion Dockerfile.patched
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM eclipse-temurin:21 AS builder

RUN apt-get update && apt-get install -y \
unzip

#^3
#patched
#!3
Expand Down Expand Up @@ -50,6 +53,7 @@ ARG PRESET_WORKING_DIR
ARG PRESET_SCRIPT
ARG PRESET_ENCRYPTED_URI
ARG PRESET_ENCRYPTED_PASSWORD
ARG PUSH_TOKEN
#override
ENV FLAVOR=generated-${FLAVOR}

Expand Down Expand Up @@ -104,10 +108,11 @@ PRESET_WORKING_DIR=${PRESET_WORKING_DIR}
PRESET_SCRIPT=${PRESET_SCRIPT}
PRESET_ENCRYPTED_URI=${PRESET_ENCRYPTED_URI}
PRESET_ENCRYPTED_PASSWORD=${PRESET_ENCRYPTED_PASSWORD}
PUSH_TOKEN=${PUSH_TOKEN}
EOF


RUN find scripts/ -type f -name "*.sh" -exec sed -i 's/\r$//' {} + && \
RUN find scripts/ -type f \( -name "*.sh" -o -name "*.js" \) -exec sed -i 's/\r$//' {} + && \
sed -i 's/\r$//' gradlew

RUN bash scripts/download_scripts/download_data.sh $PRESET_ENCRYPTED_URI $PRESET_ENCRYPTED_PASSWORD
Expand Down

0 comments on commit ce6caa7

Please sign in to comment.