Compare commits
2 Commits
5f6f18d8fe
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
80ac0062d6
|
|||
|
acf79a9c69
|
@@ -11,7 +11,7 @@ RUN python /install-poetry.py --yes --version ${POETRY_VERSION}
|
|||||||
ADD . /build
|
ADD . /build
|
||||||
WORKDIR /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 \
|
RUN /root/.local/bin/poetry export \
|
||||||
--format requirements.txt \
|
--format requirements.txt \
|
||||||
--output /build/requirements.txt \
|
--output /build/requirements.txt \
|
||||||
@@ -35,6 +35,8 @@ RUN python -m pip install /tmp/wheels/*.whl \
|
|||||||
--disable-pip-version-check
|
--disable-pip-version-check
|
||||||
RUN rm -rf /tmp/wheels
|
RUN rm -rf /tmp/wheels
|
||||||
|
|
||||||
ENTRYPOINT ["s3cmd"]
|
ADD entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|
||||||
CMD ["--help"]
|
CMD ["--help"]
|
||||||
|
|||||||
@@ -13,4 +13,9 @@ following undesirable groups:
|
|||||||
* Hasn't been updated in years
|
* Hasn't been updated in years
|
||||||
* Has no source code available
|
* Has no source code available
|
||||||
* Includes usage specific scheduling functionality
|
* 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
15
entrypoint.sh
Executable 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 "$@"
|
||||||
Reference in New Issue
Block a user