Skip to content

Commit

Permalink
WiP
Browse files Browse the repository at this point in the history
  • Loading branch information
prmoore77 committed Jan 22, 2024
1 parent 964ca2c commit fd81b0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
secret-files: build/flight_sql
platforms: linux/${{ matrix.platform }}
file: Dockerfile.ci
push: true
Expand All @@ -74,8 +75,6 @@ jobs:
${{ env.DOCKER_IMAGE_NAME }}:${{ github.ref_name }}-${{ matrix.platform }}
no-cache: true
provenance: false
build-args: |
GITHUB_WORKSPACE=${{ github.workspace }}

update-image-manifest:
name: Update DockerHub image manifest to include all built platforms
Expand Down
12 changes: 6 additions & 6 deletions Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN case ${TARGETPLATFORM} in \
esac && \
curl "${AWSCLI_FILE}" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
aws/install && \
rm -f awscliv2.zip

# Create an application user
Expand All @@ -53,15 +53,15 @@ RUN python3 -m venv ${APP_DIR}/venv && \
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"

# Copy the scripts directory into the image (we copy directory-by-directory in order to maximize Docker caching)
COPY --chown=app_user:app_user ./scripts ./scripts
COPY --chown=app_user:app_user scripts scripts

# Get the SQLite3 database file
RUN mkdir data && \
wget https://github.com/lovasoa/TPCH-sqlite/releases/download/v1.0/TPC-H-small.db -O data/TPC-H-small.db

# Install Python requirements
COPY --chown=app_user:app_user ./requirements.txt ./
RUN pip install --requirement ./requirements.txt
COPY --chown=app_user:app_user requirements.txt .
RUN pip install --requirement requirements.txt

# Create DuckDB database file
RUN python "scripts/create_duckdb_database_file.py" \
Expand All @@ -74,9 +74,9 @@ RUN python "scripts/create_duckdb_database_file.py" \
ARG GITHUB_WORKSPACE

# The flight_sql executable was built earlier in the Github actions pipeline - so just copy it into the image
COPY --chown=app_user:app_user ./build/flight_sql /usr/local/bin/flight_sql
COPY --chown=app_user:app_user /run/secrets/flight_sql /usr/local/bin/flight_sql

COPY --chown=app_user:app_user ./tls ./tls
COPY --chown=app_user:app_user tls tls

EXPOSE 31337

Expand Down

0 comments on commit fd81b0f

Please sign in to comment.