-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
128 additions
and
1 deletion.
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,23 @@ | ||
concurrency: | ||
cancel-in-progress: true | ||
group: ${{ github.workflow }}-${{ github.event.ref }}-${{ github.event_name }} | ||
jobs: | ||
build: | ||
uses: ./.github/workflows/workflow.build.yaml | ||
secrets: inherit | ||
with: | ||
name: s3-client | ||
|
||
version_test: | ||
container: "docker://ghcr.io/socialgouv/docker/s3-client:sha-${{ github.sha }}" | ||
name: Test Version | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: aws --version | ||
|
||
name: "s3-client" | ||
on: | ||
push: | ||
tags: | ||
- "s3-client@**" |
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,31 @@ | ||
concurrency: | ||
cancel-in-progress: true | ||
group: ${{ github.workflow }}-${{ github.event.ref }}-${{ github.event_name }} | ||
jobs: | ||
build: | ||
uses: ./.github/workflows/workflow.build.yaml | ||
secrets: inherit | ||
with: | ||
name: s3-client | ||
|
||
version_test: | ||
container: "docker://ghcr.io/socialgouv/docker/s3-client:sha-${{ github.sha }}" | ||
name: Test Version | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: aws --version | ||
|
||
name: "s3-client" | ||
on: | ||
push: | ||
branches: | ||
- "**" | ||
- "!master" | ||
- "!alpha" | ||
- "!beta" | ||
paths: | ||
- "s3-client/**" | ||
- ".github/workflows/s3-client.yaml" | ||
- ".github/workflows/s3-client.tag.yaml" | ||
- ".github/workflows/workflow.build.yaml" |
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 |
---|---|---|
|
@@ -28,7 +28,8 @@ | |
"wait-for-postgres", | ||
"datasette", | ||
"git", | ||
"check-cluster-images" | ||
"check-cluster-images", | ||
"s3-client" | ||
], | ||
"packageManager": "[email protected]", | ||
"private": true | ||
|
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,10 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
[*.{js,json,yml}] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 |
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,11 @@ | ||
.yarn/* | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
|
||
# Swap the comments on the following lines if you don't wish to use zero-installs | ||
# Documentation here: https://yarnpkg.com/features/zero-installs | ||
!.yarn/cache | ||
#.pnp.* |
Empty file.
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,20 @@ | ||
ARG UBUNTU_VERSION=22.04 | ||
FROM ubuntu:$UBUNTU_VERSION | ||
|
||
# hadolint ignore=DL3008 | ||
RUN apt-get update && \ | ||
apt-get install -yq --no-install-recommends \ | ||
ca-certificates \ | ||
curl \ | ||
unzip \ | ||
postgresql-client \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN groupadd -g 1001 ubuntu && useradd -rm -d /home/ubuntu -s /bin/bash -g ubuntu -G sudo -u 1001 ubuntu | ||
ENV HOME=/home/ubuntu | ||
|
||
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \ | ||
unzip awscliv2.zip && \ | ||
./aws/install | ||
|
||
USER 1001 |
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,3 @@ | ||
# s3-client | ||
|
||
Image with `psql` and `awscli` |
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,11 @@ | ||
{ | ||
"name": "s3-client", | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"build": "docker build -t ${SG_DOCKER_IMAGE:-'socialgouv_docker_psql'} .", | ||
"test": "yarn test:e2e && yarn test:structure", | ||
"test:e2e": "$(yarn bin:bats) tests/*", | ||
"test:structure": "$(yarn bin:container-structure-test) test --image ${SG_DOCKER_IMAGE:-'socialgouv_docker_psql'} --config tests/container-structure-test.yml -v debug" | ||
}, | ||
"private": true | ||
} |
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,11 @@ | ||
schemaVersion: "2.0.0" | ||
|
||
commandTests: | ||
- name: "psql version" | ||
command: "psql" | ||
args: ["--version"] | ||
expectedOutput: ["psql \\(PostgreSQL\\) \\d+\\.\\d+"] | ||
- name: "aws version" | ||
command: "aws" | ||
args: ["--version"] | ||
expectedOutput: ["aws-cli.*"] |
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