File tree 3 files changed +12
-7
lines changed
mssql-server-linux-adapter-ci
3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
1
ARG TARGET_VERSION
2
2
3
- FROM ruby:${TARGET_VERSION}-alpine
3
+ # Use `alpine3.18` as there is an issue with SQLite and Ruby v3.3.0 on `alpine3.19`. Revert back to `alpine` when the issue is resolved.
4
+ FROM ruby:${TARGET_VERSION}-alpine3.18
4
5
5
- LABEL maintainer="Wanderson Policarpo <wpolicarpo@gmail .com>"
6
+ LABEL maintainer="Aidan Haran <aidanharan@yahoo .com>"
6
7
7
8
RUN apk add git make build-base linux-headers sqlite-dev tzdata freetds freetds-dev libpq postgresql-dev
8
9
Original file line number Diff line number Diff line change @@ -15,18 +15,22 @@ All commands assume that the `$PWD` is this directory.
15
15
16
16
Fully automated build. The docker image is pushed as part of the build process. So you need to login to Github packages first:
17
17
18
- ` docker login ghcr.io `
18
+ ``` shell
19
+ docker login ghcr.io
20
+ ```
21
+
22
+ Then run the build and push script.
19
23
20
24
``` shell
21
- ./build.sh 2.7.1
25
+ ./build.sh 3.3.0
22
26
```
23
27
24
28
### Build Testing
25
29
26
30
Simple build command.
27
31
28
32
``` shell
29
- docker build -t railssqlserver /activerecord-sqlserver-adapter:2.7.1 .
33
+ docker build --build-arg TARGET_VERSION=3.3.0 -t rails-sqlserver /activerecord-sqlserver-adapter:3.3.0 .
30
34
```
31
35
32
36
Ensure that the build script worked.
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -e
3
3
4
- TARGET_VERSION=${1:- ' 3.2.1 ' }
4
+ TARGET_VERSION=${1:- ' 3.3.0 ' }
5
5
6
6
images=$( docker images --all --quiet)
7
7
if [[ -n $images ]]; then
8
8
docker rmi --force $images
9
9
fi
10
10
11
- docker build --no-cache --build-arg TARGET_VERSION=${TARGET_VERSION} --tag ghcr.io/rails-sqlserver/activerecord-sqlserver-adapter:${TARGET_VERSION} .
11
+ docker buildx build --platform linux/amd64,linux/arm64 --no-cache --build-arg TARGET_VERSION=${TARGET_VERSION} --tag ghcr.io/rails-sqlserver/activerecord-sqlserver-adapter:${TARGET_VERSION} .
12
12
docker push ghcr.io/rails-sqlserver/activerecord-sqlserver-adapter:${TARGET_VERSION}
You can’t perform that action at this time.
0 commit comments