File tree Expand file tree Collapse file tree 4 files changed +30
-3
lines changed Expand file tree Collapse file tree 4 files changed +30
-3
lines changed Original file line number Diff line number Diff line change
1
+ set -eu
2
+
3
+ git log -25000 --format='%H' | sort > tmp-log
4
+ git show-ref | grep tags/mysql-8 | sort > tmp-tags
5
+ export CONTAINER_SEMVER=$(join tmp-log tmp-tags | sort -k2 | tail -1 | cut -d- -f2)
6
+ echo "Semantic version = \"${CONTAINER_SEMVER}\""
7
+
8
+ export CONTAINER_SHORT_SHA=$(git log -1 --pretty='%h')
9
+ echo "Short SHA = \"${CONTAINER_SHORT_SHA}\""
10
+
11
+ export CONTAINER_BRANCH_NAME=$(echo "$BUILDKITE_BRANCH" | sed -e 's/[\/:]/_/g')
12
+ echo "Safe branch name = \"${CONTAINER_BRANCH_NAME}\""
Original file line number Diff line number Diff line change 33
33
- docker-compose#v3.9.0:
34
34
run : release
35
35
push :
36
- - " release:${REGISTRY}/branch/${IMAGE_NAME}:${BUILDKITE_BRANCH}-latest "
36
+ - " release:${REGISTRY}/branch/${IMAGE_NAME}:${CONTAINER_SEMVER}-ps-${CONTAINER_SHORT_SHA}-${CONTAINER_BRANCH_NAME} "
37
37
38
38
- name : " Build runtime mysql-server container for main"
39
39
label : " :docker: Build runtime main container"
47
47
- docker-compose#v3.9.0:
48
48
run : release
49
49
push :
50
- - " release:${REGISTRY}/main/${IMAGE_NAME}:${BUILDKITE_BRANCH}-latest "
50
+ - " release:${REGISTRY}/main/${IMAGE_NAME}:${CONTAINER_SEMVER}-ps-${CONTAINER_SHORT_SHA} "
Original file line number Diff line number Diff line change @@ -12,6 +12,22 @@ aws --region us-east-1 ecr list-images --profile build --repository-name 'branch
12
12
```
13
13
14
14
If necessary, log into the [ ` build ` profile] ( https://github.com/planetscale/infra/blob/12ae46f94b7b9ad15b0b1ef00c94d544e590c42f/aws_config#L57-L61 ) first:
15
+
15
16
```
16
17
aws sso login --profile build
17
18
```
19
+
20
+ ### Run images
21
+
22
+ To run a MySQL container image locally, first log in if needed:
23
+
24
+ ```
25
+ aws sso login
26
+ aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 997601596833.dkr.ecr.us-east-1.amazonaws.com
27
+ ```
28
+
29
+ And then run it:
30
+
31
+ ```
32
+ docker run -it 997601596833.dkr.ecr.us-east-1.amazonaws.com/branch/mysql-server:8.0.28-ps-sha4567
33
+ ```
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ cmake \
27
27
-DWITH_NUMA=ON \
28
28
.. && \
29
29
make -j $( nproc) && \
30
- make test ARGS=" -j $( nproc) " && \
31
30
make package -j $( nproc)
32
31
33
32
cp * .tar.gz /dist/
You can’t perform that action at this time.
0 commit comments