Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
R
red-ci-cd
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
red-group-test
red-ci-cd
Commits
3407d480
Commit
3407d480
authored
Apr 10, 2020
by
John Red Medrano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new method for CI/CD
parent
a8ecdca0
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
422 additions
and
336 deletions
+422
-336
.gitlab-ci.yml
.gitlab-ci.yml
+6
-331
Dockerfile.template
Dockerfile.template
+7
-1
docker-compose.yml.template
docker-compose.yml.template
+28
-4
test.env
test.env
+4
-0
working_gitlab.yml
working_gitlab.yml
+377
-0
No files found.
.gitlab-ci.yml
View file @
3407d480
This diff is collapsed.
Click to expand it.
Dockerfile.template
View file @
3407d480
FROM python:3.6
FROM python:3.6
ARG test
# ENV xxx ${test}
ENV port $port
ENV wow2 "from dockerfile"
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV PYTHONUNBUFFERED 1
ADD . /code
ADD . /code
COPY . /code
COPY . /code
WORKDIR /code
WORKDIR /code
# RUN echo "Build number: $IMAGE_NAME"
RUN pip install -r requirements/local.txt
RUN pip install -r requirements/local.txt
EXPOSE 7020
EXPOSE ${export}
# EXPOSE "${export}"
RUN python manage.py migrate
RUN python manage.py migrate
docker-compose.yml.template
View file @
3407d480
version: '3'
version: '3'
services:
services:
web:
xxx:
image: dev-rmsv2:latest
# environment:
build: .
# - $IMAGE_NAME
# - $wow
env_file:
- test.env
image: red-test
build:
context: .
dockerfile: Dockerfile
command: python manage.py runserver 0.0.0.0:8000
command: python manage.py runserver 0.0.0.0:8000
volumes:
volumes:
- .:/code
- .:/code
ports:
ports:
- "7020:8000"
- "${export}:8000"
container_name: dev_rmsv2_api_container
restart: always
ddd:
# environment:
# - $IMAGE_NAME
# - $wow
env_file:
- test.env
image: red-test
build:
context: .
dockerfile: Dockerfile
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "${export}:8000"
container_name: dev_rmsv2_api_container
container_name: dev_rmsv2_api_container
restart: always
restart: always
test.env
0 → 100644
View file @
3407d480
MY_SECRET_KEY=SOME_SECRET
IMAGE_NAME=wow_red
wow=from_env
export=8080
\ No newline at end of file
working_gitlab.yml
0 → 100644
View file @
3407d480
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment