Skip to content

Commit

Permalink
Merge branch 'staging/cor_satelite_new' of github.com:prefeitura-rio/…
Browse files Browse the repository at this point in the history
…pipelines into staging/cor_satelite_new
  • Loading branch information
patriciacatandi committed Nov 28, 2023
2 parents e143168 + 9dcbe3e commit 9ea00cc
Show file tree
Hide file tree
Showing 66 changed files with 5,570 additions and 828 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ jobs:
continue-on-error: true
run: |
python .github/workflows/scripts/code_tree_analysis.py "${{ steps.files.outputs.all }}"
- name: Delete previous comments
uses: izhangzhihao/delete-comment@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
delete_user_name: github-actions[bot]
issue_number: ${{ github.event.number }} # remove comments from the current PR
- name: Comment PR
uses: thollander/actions-comment-pull-request@v1
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ replit.nix
test_local.py
pylint.txt
test.py
test.ipynb
test/*
test/*.ipynb
test/*.csv
Expand Down
13 changes: 10 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build arguments
ARG PYTHON_VERSION=3.9-slim
ARG PYTHON_VERSION=3.9-slim-buster

# Get Oracle Instant Client
FROM curlimages/curl:7.81.0 as curl-step
Expand All @@ -22,17 +22,24 @@ FROM python:${PYTHON_VERSION}
# Setting environment with prefect version
ARG PREFECT_VERSION=0.15.9
ENV PREFECT_VERSION $PREFECT_VERSION
ENV DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# Setting environment with Oracle Instant Client URL

# Setup Oracle Instant Client
# Setup Oracle Instant Client and SQL Server ODBC Driver
WORKDIR /opt/oracle
COPY --from=unzip-step /tmp/instantclient_21_5 /opt/oracle/instantclient_21_5
RUN apt-get update && \
apt-get install --no-install-recommends -y libaio1 && \
apt-get install --no-install-recommends -y curl gnupg2 libaio1 && \
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
echo "deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/debian/12/prod bookworm main" > /etc/apt/sources.list.d/mssql-release.list && \
apt-get update && \
ACCEPT_EULA=Y apt-get install --no-install-recommends -y ffmpeg libsm6 libxext6 msodbcsql17 openssl unixodbc-dev && \
rm -rf /var/lib/apt/lists/* && \
sh -c "echo /opt/oracle/instantclient_21_5 > /etc/ld.so.conf.d/oracle-instantclient.conf" && \
ldconfig
COPY ./openssl.cnf /etc/ssl/openssl.cnf

# Setup virtual environment and prefect
ENV VIRTUAL_ENV=/opt/venv
Expand Down
Loading

0 comments on commit 9ea00cc

Please sign in to comment.