-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from KPMP/develop
Atlas 2024 Q3 Release
- Loading branch information
Showing
6 changed files
with
82 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Build atlas-file-service docker image | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build-project: | ||
env: | ||
IMAGE_TAG: 3.4 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get branch names | ||
id: branch-names | ||
uses: tj-actions/branch-names@v8 | ||
|
||
- name: Get current branch name | ||
if: steps.branch-names.outputs.is_default == 'false' | ||
run: | | ||
echo "Running on branch: ${{ steps.branch-names.outputs.current_branch }}" | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a | ||
with: | ||
username: ${{ secrets.ENV_DOCKER_USER }} | ||
password: ${{ secrets.ENV_DOCKER_PASS }} | ||
|
||
- name: Build and push to Docker Hub if branch is develop | ||
if: steps.branch-names.outputs.current_branch == 'develop' | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
tags: kingstonduo/atlas-file-service:${{ env.IMAGE_TAG }} | ||
|
||
- name: Build and push to Docker Hub if branch is not develop | ||
if: steps.branch-names.outputs.current_branch != 'develop' | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
tags: kingstonduo/atlas-file-service:${{ steps.branch-names.outputs.current_branch }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
FROM python:3.7.12-alpine3.14 | ||
WORKDIR /code | ||
ENV FLASK_APP app.py | ||
ENV FLASK_RUN_HOST 0.0.0.0 | ||
ENV FLASK_APP=app.py | ||
ENV FLASK_RUN_HOST=0.0.0.0 | ||
RUN apk add --no-cache gcc musl-dev linux-headers tzdata libffi-dev libc-dev | ||
COPY app.py app.py | ||
COPY requirements.txt requirements.txt | ||
RUN pip3 install -r requirements.txt | ||
RUN pip3 install -U flask-cors | ||
CMD ["flask", "run"] | ||
CMD ["gunicorn", "-b", ":5000", "app:app"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Changelog | ||
|
||
## Release 1.4 [unreleased] | ||
Brief summary of what's in this release: | ||
|
||
|
||
### Breaking changes | ||
|
||
Breaking changes include any database updates needed, if we need to edit any files on system (like .env or certs, etc). Things that are outside of the code itself that need changed for the system to work. | ||
|
||
|
||
### Non-breaking changes | ||
|
||
Just a place to keep track of things that have changed in the code that we may want to pay special attention to when smoke testing, etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ minio | |
boto3 | ||
flask-cors | ||
mysql-connector-python | ||
requests | ||
gunicorn |