-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Extracted exalsct from script-languages and combined it with poetry packaging in the integration-test-docker-environment - Renamed master branch to main branch in githooks and github actions - Use newer pip in runner Dockerfile, because the ubuntu 18.04 pip version is too old for git repos as python package - Rename docker runner scripts and fix executable for exaslct run script - Fix names of docker runner scripts in .github/workflows/main.yml - Use slim version of tests/test/enginedb_small - Disable publish in github actions until we are ready to publish
- Loading branch information
Showing
213 changed files
with
19,678 additions
and
3 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,29 @@ | ||
name: Check packaging is up to date | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
check_setup_py: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.6] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: abatilo/actions-poetry@v2.0.0 | ||
with: | ||
poetry-version: 1.1.6 | ||
- name: Run packaging update | ||
run: bash githooks/update_packaging.sh | ||
- name: Show changes on working copy | ||
run: git status --porcelain=v1 -uno | ||
- name: Show diff on working copy | ||
run: git diff --cached | ||
- name: Check if something changed after running the update script | ||
run: | | ||
[ -z "$(git status --porcelain=v1 -uno 2>/dev/null)" ] |
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,56 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test-docker-starter: | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Test ./exaslct | ||
run: ./exaslct --help | ||
|
||
test-all: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
exasol_version: | ||
- "default" | ||
python_version: | ||
- 3.6 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Python 3.6 for integration-test-docker-environment | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.6 | ||
- name: Install Poetry | ||
uses: abatilo/actions-poetry@v2.0.0 | ||
|
||
- name: Run all tests | ||
run: ./run_all_tests.sh | ||
|
||
- name: Test ./exaslct-with-poetry | ||
run: ./exaslct-with-poetry --help | ||
|
||
# publish: | ||
# if: github.ref == 'refs/heads/main' | ||
# runs-on: ubuntu-latest | ||
# environment: publish | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: Build new Docker image | ||
# run: bash build_docker_runner_image.sh | ||
# - name: Docker login | ||
# run: echo "$SECRET_DOCKER_TOKEN" | docker login --username "$SECRET_DOCKER_USER_NAME" --password-stdin | ||
# env: # Set the secret as an input | ||
# SECRET_DOCKER_USER_NAME: ${{ secrets.DOCKER_USER_NAME }} | ||
# SECRET_DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} | ||
# - name: Push new Docker image | ||
# run: bash push_docker_runner_image.sh | ||
# |
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
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,26 @@ | ||
FROM ubuntu:18.04 | ||
|
||
COPY ext/01_nodoc /etc/dpkg/dpkg.cfg.d/01_nodoc | ||
|
||
RUN apt-get -y update && \ | ||
apt-get -y install --no-install-recommends\ | ||
ca-certificates \ | ||
locales \ | ||
python3-wheel \ | ||
python3-setuptools \ | ||
git \ | ||
bash \ | ||
curl && \ | ||
locale-gen en_US.UTF-8 && \ | ||
update-locale LC_ALL=en_US.UTF-8 && \ | ||
apt-get -y clean && \ | ||
apt-get -y autoremove && \ | ||
ldconfig | ||
|
||
RUN curl https://bootstrap.pypa.io/get-pip.py | python3 | ||
|
||
ENV LC_ALL=C.UTF-8 | ||
ENV LANG=C.UTF-8 | ||
COPY . /script-languages-container-tool | ||
WORKDIR /script-languages-container-tool | ||
RUN python3 -m pip install . |
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,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
SCRIPT_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" | ||
|
||
IMAGE_NAME="$($SCRIPT_DIR/construct_docker_runner_image_name.sh)" | ||
|
||
docker build -t $IMAGE_NAME . |
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,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
SCRIPT_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" | ||
|
||
if [ -z "${1-}" ] | ||
then | ||
VERSION="$(git rev-parse HEAD || echo latest)" | ||
else | ||
VERSION="$1" | ||
fi | ||
|
||
echo "exasol/script-languages:container-tool-runner-$VERSION" |
Oops, something went wrong.