Skip to content

Commit

Permalink
feat(new packages in dockerfile (git, bash)): new packages in dockerf…
Browse files Browse the repository at this point in the history
…ile (git, bash)
  • Loading branch information
lpmatos committed Jul 27, 2020
1 parent dc8129c commit 6950455
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 24 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ FROM base

RUN set -ex && apk update

RUN apk add --update --no-cache \
bash=5.0.11-r1 \
git=2.24.3-r0

COPY --from=install-env [ "/root/.local", "/usr/local" ]

WORKDIR /usr/src/code
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<p align="center">
<img alt="commitlint" src="https://res.cloudinary.com/practicaldev/image/fetch/s--0GjySa5t--/c_imagga_scale,f_auto,fl_progressive,h_720,q_auto,w_1280/https://dev-to-uploads.s3.amazonaws.com/i/r1gk3rq3o70t3zghna8w.png" width="250px" float="center"/>
<img alt="commitlint" src="https://img2.gratispng.com/20180713/hfv/kisspng-logo-version-control-gitlab-brand-e-commerce-gitlab-5b482945dfad48.8320886315314558139162.jpg" width="250px" float="center"/>
</p>

<h1 align="center">Welcome to commitlint template repository</h1>
<h1 align="center">Welcome to GitLab-Clone repository</h1>

<p align="center">
<strong>Automating the standardization of good commit messages with commitlint + husky + commitizen</strong>
<strong>Automate clonning projects and groups in GitLab</strong>
</p>

<p align="center">
Expand Down
22 changes: 1 addition & 21 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,19 @@ x-logging: &default-logging
max-size: "500k"
max-file: "20"

x-entrypoint: &default-entrypoint
entrypoint: >
/bin/sh -c "
set -e
chmod a+x /usr/local/bin/wait && \
/usr/local/bin/wait && echo Hello
/bin/bash || exit 0
"
x-volumes: &default-volumes
volumes:
- ./scripts/wait:/usr/local/bin/wait

# ==============================================================================
# SERVICES
# ==============================================================================

services:

python-rabbitmq:
gitlab-clone:
container_name: ${CONTAINER_NAME}
env_file: [ "./.env" ]
build:
context: ./${PATH_DOCKERFILE}
dockerfile: Dockerfile
<<: *default-entrypoint
stdin_open: true
tty: true
healthcheck:
test: nc -z rabbitmq 5672 || exit 1
interval: 10s
timeout: 2s
retries: 10
restart: on-failure
logging: *default-logging
depends_on: [ "rabbitmq" ]
<<: *default-volumes
1 change: 1 addition & 0 deletions gitlab-clone/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/usr/bin/env python

0 comments on commit 6950455

Please sign in to comment.