Skip to content
This repository was archived by the owner on May 7, 2019. It is now read-only.

Commit 0efd331

Browse files
authored
init image, readme and travis (#1)
1 parent 8abe2d8 commit 0efd331

3 files changed

Lines changed: 29 additions & 0 deletions

File tree

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Use container-based infrastructure for quicker build start-up
2+
sudo: false
3+
# Use generic image to cut start-up time
4+
language: generic
5+
env:
6+
# Path to 'hadolint' binary
7+
HADOLINT: "${HOME}/hadolint"
8+
install:
9+
# Download hadolint binary and set it as executable
10+
- curl -sL -o ${HADOLINT} "https://github.com/hadolint/hadolint/releases/download/v1.14.0/hadolint-$(uname -s)-$(uname -m)"
11+
&& chmod 700 ${HADOLINT}
12+
script:
13+
# List files which name starts with 'Dockerfile'
14+
# eg. Dockerfile, Dockerfile.build, etc.
15+
- git ls-files --exclude='Dockerfile*' --ignored | xargs --max-lines=1 ${HADOLINT}

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM python:alpine
2+
3+
RUN apk add --no-cache git=2.18.1-r0
4+
RUN pip install --disable-pip-version-check git+https://github.com/andialbrecht/sqlparse@master
5+
6+
ENTRYPOINT ["sqlformat"]
7+
CMD ["--help"]

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# docker-sqlparse
2+
3+
> sqlparse in alpine docker image.
4+
5+
## License
6+
7+
MIT © [AgFlow](https://www.agflow.com)

0 commit comments

Comments
 (0)