Skip to content

Commit

Permalink
fix: refactoring folders
Browse files Browse the repository at this point in the history
  • Loading branch information
lpmatos committed Jul 27, 2020
1 parent 31e2d35 commit 27e13b0
Show file tree
Hide file tree
Showing 11 changed files with 286 additions and 318 deletions.
26 changes: 13 additions & 13 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
=======
Credits
=======

Development Lead
----------------

* Lucca Pessoa da Silva Matos <luccapsm@gmail.com>

Contributors
------------

None yet. Why not be the first?
=======
Credits
=======

Development Lead
----------------

* Lucca Pessoa da Silva Matos <luccapsm@gmail.com>

Contributors
------------

None yet. Why not be the first?
68 changes: 34 additions & 34 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
ARG PYTHON_VERSION=3.8-alpine3.11

FROM python:${PYTHON_VERSION} as base

FROM base as install-env
ARG GIT_PASSWORD

COPY [ "requirements.txt", "."]

RUN pip install --upgrade pip && \
pip install --upgrade setuptools && \
pip install --user --no-warn-script-location -r ./requirements.txt

FROM base

ENV GIT_PASSWORD=$GIT_PASSWORD

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

COPY [ "./gitlab-clone", "." ]

RUN git config --global user.name "Lucca Pessoa" && \
git config --global user.email "luccapsm@gmail.com" && \
git config --global credential.helper cache

RUN find ./ -iname "*.py" -type f -exec chmod a+x {} \; -exec echo {} \;;
ARG PYTHON_VERSION=3.8-alpine3.11

FROM python:${PYTHON_VERSION} as base

FROM base as install-env
ARG GIT_PASSWORD

COPY [ "requirements.txt", "."]

RUN pip install --upgrade pip && \
pip install --upgrade setuptools && \
pip install --user --no-warn-script-location -r ./requirements.txt

FROM base

ENV GIT_PASSWORD=$GIT_PASSWORD

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

COPY [ "./gitlab-clone", "." ]

RUN git config --global user.name "Lucca Pessoa" && \
git config --global user.email "luccapsm@gmail.com" && \
git config --global credential.helper cache

RUN find ./ -iname "*.py" -type f -exec chmod a+x {} \; -exec echo {} \;;
22 changes: 11 additions & 11 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
include AUTHORS.rst
include CONTRIBUTING.rst
include HISTORY.rst
include LICENSE
include README.rst

recursive-include tests *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]

recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif
include AUTHORS.rst
include CONTRIBUTING.rst
include HISTORY.rst
include LICENSE
include README.rst
recursive-include tests *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]
recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<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 GitLab-Clone repository</h1>
<h1 align="center">Welcome to GitLab Clone Recursive repository</h1>

<p align="center">
<strong>Automate clonning projects and groups in GitLab</strong>
<strong>Automate clone your projects in GitLab</strong>
</p>

<p align="center">
Expand Down Expand Up @@ -51,20 +51,26 @@
If you want use this repository you need to make a **git clone**:

```bash
git clone --depth 1 https://github.com/lpmatos/gitlab-clone.git -b master
git clone --depth 1 https://github.com/lpmatos/gitlab-clone-recursive.git -b master
```

This will give access on your **local machine**.

### Pre-Requisites

To this project you yeed:
To **develop** in this project you yeed:

* NPM | Yarn (package tool)
* Install Packages
* Husky
* Commitlint
* Commitizen
* NodeJS
* Python
* Docker and Docker Compose

To **use** this project you yeed:

* Packages
* Git Installation and Configuration
* Install Package gitlab-clone-recursive

### How to use it?

Expand Down
38 changes: 0 additions & 38 deletions README.rst

This file was deleted.

2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}
module.exports = {extends: ['@commitlint/config-conventional']}
56 changes: 28 additions & 28 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
version: "3.8"

# ==============================================================================
# ANCHORS
# ==============================================================================

x-logging: &default-logging
driver: "json-file"
options:
max-size: "500k"
max-file: "20"

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

services:

gitlab-clone:
container_name: ${CONTAINER_NAME}
env_file: [ "./.env" ]
build:
context: ./${PATH_DOCKERFILE}
dockerfile: Dockerfile
stdin_open: true
tty: true
restart: on-failure
logging: *default-logging
version: "3.8"

# ==============================================================================
# ANCHORS
# ==============================================================================

x-logging: &default-logging
driver: "json-file"
options:
max-size: "500k"
max-file: "20"

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

services:

gitlab-clone:
container_name: ${CONTAINER_NAME}
env_file: [ "./.env" ]
build:
context: ./${PATH_DOCKERFILE}
dockerfile: Dockerfile
stdin_open: true
tty: true
restart: on-failure
logging: *default-logging
2 changes: 1 addition & 1 deletion gitlab-clone-recursive/__init__.py → gitlab/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.1"
__version__ = "0.0.1"
Loading

0 comments on commit 27e13b0

Please sign in to comment.