-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: oracledb tag for native workers + client not working on arm syst…
…ems (#5162) * New migration for oracledb * fix oracledb on ARM64 systems
- Loading branch information
Showing
4 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-- Add down migration script here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- Add up migration script here | ||
UPDATE config set config = jsonb_set(config, '{worker_tags}', config->'worker_tags' || '["oracledb"]'::jsonb) where name = 'worker__native' and config @> '{"worker_tags": ["nativets", "postgresql", "mysql", "graphql", "snowflake", "bigquery", "mssql"]}'::jsonb AND NOT config->'worker_tags' @> '"oracledb"'::jsonb; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,33 @@ | ||
FROM alpine:3.14 AS oracledb-client | ||
|
||
# Oracle DB Client for amd64 | ||
COPY --from=ghcr.io/oracle/oraclelinux9-instantclient:23 /usr/lib/oracle/23/client64/lib /opt/oracle/23/amd64/lib | ||
|
||
# Oracle DB Client for arm64 | ||
RUN mkdir -p /opt/oracle/23/arm64 \ | ||
&& cd /opt/oracle/23/arm64 \ | ||
&& wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linux-arm64.zip \ | ||
&& unzip instantclient-basiclite-linux-arm64.zip && rm instantclient-basiclite-linux-arm64.zip && mv instantclient* ./lib | ||
|
||
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \ | ||
mv /opt/oracle/23/arm64/lib /opt/oracle/23/lib; \ | ||
else \ | ||
mv /opt/oracle/23/amd64/lib /opt/oracle/23/lib; \ | ||
fi | ||
|
||
FROM ghcr.io/windmill-labs/windmill-ee:dev | ||
|
||
COPY --from=rust:1.81.0 /usr/local/cargo /usr/local/cargo | ||
COPY --from=rust:1.81.0 /usr/local/rustup /usr/local/rustup | ||
|
||
RUN pip3 install ansible | ||
|
||
# dotnet SDK | ||
COPY --from=bitnami/dotnet-sdk:9.0.101-debian-12-r0 /opt/bitnami/dotnet-sdk /opt/dotnet-sdk | ||
RUN ln -s /opt/dotnet-sdk/bin/dotnet /usr/bin/dotnet | ||
ENV DOTNET_ROOT="/opt/dotnet-sdk/bin" | ||
|
||
# Oracle DB Client | ||
COPY --from=ghcr.io/oracle/oraclelinux9-instantclient:23 /usr/lib/oracle/23/client64/lib /opt/oracle/23/lib | ||
COPY --from=oracledb-client /opt/oracle/23/lib /opt/oracle/23/lib | ||
RUN apt-get -y update && apt-get install -y libaio1 | ||
RUN echo /opt/oracle/23/lib > /etc/ld.so.conf.d/oracle-instantclient.conf && ldconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters