Compare commits

...

2 Commits

3 changed files with 25 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ RUN python /install-poetry.py --yes --version ${POETRY_VERSION}
ADD . /build
WORKDIR /build
RUN /root/.local/bin/poetry self add poetry-plugin-export
RUN /root/.local/bin/poetry self add 'poetry-plugin-export<1.9'
RUN /root/.local/bin/poetry export \
--format requirements.txt \
--output /build/requirements.txt \
@@ -35,6 +35,8 @@ RUN python -m pip install /tmp/wheels/*.whl \
--disable-pip-version-check
RUN rm -rf /tmp/wheels
ENTRYPOINT ["s3cmd"]
ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["--help"]

View File

@@ -13,4 +13,9 @@ following undesirable groups:
* Hasn't been updated in years
* Has no source code available
* Includes usage specific scheduling functionality
* Doesnt' support config via environment variables
* Doesn't support config via environment variables
So here we all.
Usual build tooling. Run `make help` to see availabile targets, but generally
`make image` and `make push` to build and upload respectively.

15
entrypoint.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -eo pipefail
if [ -z "$AWS_ACCESS_KEY_ID_FILE" ]; then
export AWS_ACCESS_KEY_ID
export AWS_ACCESS_KEY_ID=$(cat "$AWS_ACCESS_KEY_ID_FILE")
fi
if [ -z "$AWS_SECRET_ACCESS_KEY_FILE" ]; then
export AWS_SECRET_ACCESS_KEY
export AWS_SECRET_ACCESS_KEY=$(cat "$AWS_SECRET_ACCESS_KEY_FILE")
fi
s3cmd "$@"