-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Initial release and container publishing pipeline (#19)
* Use `make build` from dockerfile * Use multi stage build * Move dockerfile to root and branch out * Add dockerignore * Slim down images and remove volume from compose * Fix pgdata and change pg version * Update readme * Remove extra dockerfiles * Change dockerfile contents * Add remainder makefile commands * Add release job to CI config * fix makefile * Add store_artifacts step * fix: minor fixes to container build/release workflow * Reference the aerogear org and add ci-server-agnostic env var * Remove references to other dockerfiles and document new make targets * Change postgres image * fix: use rhscl postgres image * Also change user for circleci
- Loading branch information
1 parent
42d3df4
commit a157d8e
Showing
10 changed files
with
135 additions
and
64 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
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,6 @@ | ||
FROM centos:7.4.1708 | ||
ARG BINARY=./metrics | ||
EXPOSE 3000 | ||
|
||
COPY ${BINARY} /opt/metrics | ||
ENTRYPOINT ["/opt/metrics"] |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
version: '3' | ||
|
||
services: | ||
db: | ||
image: registry.access.redhat.com/rhscl/postgresql-96-rhel7:latest | ||
ports: | ||
- "5432:5432" | ||
environment: | ||
POSTGRESQL_PASSWORD: postgres | ||
POSTGRESQL_USER: postgresql | ||
POSTGRESQL_DATABASE: aerogear_mobile_metrics | ||
api: | ||
build: | ||
context: . | ||
args: | ||
BINARY: ./dist/linux_amd64/metrics | ||
environment: | ||
PGHOST: db | ||
PGUSER: postgresql | ||
PGPASSWORD: postgres | ||
PGDATABASE: aerogear_mobile_metrics | ||
ports: | ||
- "3000:3000" | ||
depends_on: | ||
- db |
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
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