Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Integrate function container start stop system (#36) #38

Merged
merged 24 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
e60a9fe
feat: docker deployer
KonsumGandalf Jan 10, 2024
78bd14d
build: revert version back
KonsumGandalf Jan 10, 2024
5e48231
feat: integrate docker client
KonsumGandalf Jan 10, 2024
4f82374
refactor(profaastinate): diagrams
KonsumGandalf Jan 10, 2024
0dfea3f
refactor(restful): remove docker client of nuclio
KonsumGandalf Jan 10, 2024
9e021c7
feat(pkg-deploy): integrate elastic deployer
KonsumGandalf Jan 10, 2024
5f011c2
feat(pkg-nexus): deployer, bulk, deadline, nexus
KonsumGandalf Jan 10, 2024
ca576d0
feat: add docker build action
KonsumGandalf Jan 11, 2024
a0747d1
feat: add docker build action
KonsumGandalf Jan 11, 2024
c7e332c
feat: add docker build action
KonsumGandalf Jan 11, 2024
d6ec3a6
feat: add docker build action
KonsumGandalf Jan 11, 2024
5ed10c0
feat: add docker build action
KonsumGandalf Jan 11, 2024
e48a136
feat: add docker build action
KonsumGandalf Jan 11, 2024
c7c59b8
feat: add docker build action
KonsumGandalf Jan 11, 2024
d12a8ae
feat: add docker build action
KonsumGandalf Jan 11, 2024
bdfd3fe
feat: add docker build action
KonsumGandalf Jan 11, 2024
508a6ee
feat: add docker build action
KonsumGandalf Jan 11, 2024
8d7eeae
feat: remove unused step
KonsumGandalf Jan 11, 2024
1db5f51
fix: replace wrong prefix
KonsumGandalf Jan 11, 2024
e523e1b
fix: replace wrong prefix
KonsumGandalf Jan 11, 2024
7d0cc4f
fix: replace wrong prefix
KonsumGandalf Jan 11, 2024
3512b26
fix: replace wrong prefix
KonsumGandalf Jan 11, 2024
5fdc7b5
fix: replace wrong prefix
KonsumGandalf Jan 11, 2024
94180ed
refactor(pkg-nexus): elastic deployer
KonsumGandalf Jan 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/docker-profaastinate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and push dashboard image

on:
workflow_dispatch:
pull_request:
branches: [ mpga-development ]

env:
REGISTRY: ghcr.io
IMAGE_NAME: quay.io/nuclio/dashboard
SET_IMAGE_NAME: nuclio-dashboard-profaastintate

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Log in to registry ${{ env.REGISTRY }}
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build dashboard image
run: make dashboard

- name: Tag and push dashboard image
run: |
docker tag ${{ env.IMAGE_NAME }}:latest-amd64 ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.SET_IMAGE_NAME }}:latest-amd64
docker push ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.SET_IMAGE_NAME }}:latest-amd64
15 changes: 9 additions & 6 deletions .github/workflows/profaastinate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,21 @@ jobs:
go-version: [ 1.21.x ] # Add other versions if needed

steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: go mod tidy

Lint:
lint:
runs-on: ubuntu-latest
needs: install-deps
steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
Expand All @@ -37,14 +39,15 @@ jobs:
- name: Run Profaastinate Lint
run: golangci-lint run ./pkg/nexus/...

Test:
test:
runs-on: ubuntu-latest
needs: install-deps
steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Run Profaastinate Tests
run: go test -cover ./pkg/nexus/...
run: go test -cover ./pkg/nexus/...
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# Note: Comment the next line if you want to checkin your web elastic-deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
Expand Down
23 changes: 19 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ require (
github.com/eclipse/paho.mqtt.golang v1.4.2
github.com/fatih/color v1.13.0
github.com/fatih/structs v1.1.0
github.com/fsouza/go-dockerclient v1.8.2
github.com/go-chi/chi/v5 v5.0.8
github.com/go-chi/cors v1.2.1
github.com/go-git/go-git/v5 v5.4.2
Expand Down Expand Up @@ -72,16 +73,23 @@ require (
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/iam v0.8.0 // indirect
code.cloudfoundry.org/clock v1.0.0 // indirect
github.com/Microsoft/go-winio v0.4.16 // indirect
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/Microsoft/go-winio v0.5.2 // indirect
github.com/Microsoft/hcsshim v0.9.3 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/acomagu/bufpipe v1.0.3 // indirect
github.com/andybalholm/brotli v1.0.4 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/containerd/cgroups v1.0.3 // indirect
github.com/containerd/containerd v1.6.6 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/docker/docker v20.10.17+incompatible // indirect
github.com/docker/go-connections v0.4.0 // indirect
github.com/docker/go-units v0.4.0 // indirect
github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5 // indirect
github.com/eapache/go-resiliency v1.3.0 // indirect
github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 // indirect
Expand All @@ -91,7 +99,7 @@ require (
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
github.com/go-git/gcfg v1.5.0 // indirect
github.com/go-git/go-billy/v5 v5.3.1 // indirect
github.com/go-logr/logr v1.2.0 // indirect
github.com/go-logr/logr v1.2.2 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.19.5 // indirect
github.com/go-openapi/swag v0.19.14 // indirect
Expand All @@ -100,7 +108,7 @@ require (
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/gnostic v0.5.7-v3refs // indirect
github.com/google/gofuzz v1.1.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.0 // indirect
github.com/googleapis/gax-go/v2 v2.7.0 // indirect
github.com/gorilla/websocket v1.4.2 // indirect
Expand All @@ -127,15 +135,21 @@ require (
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/moby/sys/mount v0.3.3 // indirect
github.com/moby/sys/mountinfo v0.6.2 // indirect
github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/nats-io/nats-server/v2 v2.9.6 // indirect
github.com/nats-io/nkeys v0.3.0 // indirect
github.com/nats-io/nuid v1.0.1 // indirect
github.com/nwaples/rardecode v1.1.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.0.3-0.20211202183452-c5a74bcca799 // indirect
github.com/opencontainers/runc v1.1.2 // indirect
github.com/pierrec/lz4/v4 v4.1.17 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
Expand All @@ -147,6 +161,7 @@ require (
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/satori/go.uuid v1.2.1-0.20181028125025-b2ce2384e17b // indirect
github.com/sergi/go-diff v1.1.0 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/ulikunitz/xz v0.5.9 // indirect
Expand Down
Loading
Loading