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: Adds argo server command. Fixes #1966 #1972

Merged
merged 479 commits into from
Jan 15, 2020
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
479 commits
Select commit Hold shift + click to select a range
70d3b4c
updated logs viewer
alexec Jan 3, 2020
a97c936
clean-up
alexec Jan 3, 2020
0b940a4
add install.sh script
alexec Jan 3, 2020
c0e8f29
Fixed Test
sarabala1979 Jan 3, 2020
3f8b176
adds /historical-artifacts URL
alexec Jan 3, 2020
028b473
renamed "history" to "archive"
alexec Jan 3, 2020
8dd2ca7
refactored bearer code to support minikube
alexec Jan 4, 2020
b733888
lint
alexec Jan 4, 2020
3cbfb79
tidy up login
alexec Jan 4, 2020
06899d7
skip test
alexec Jan 4, 2020
bd2f49a
Added template Cli commands
sarabala1979 Jan 4, 2020
b79eb6f
Merge branch 'apiserverimpl' of https://github.com/argoproj/argo into…
sarabala1979 Jan 4, 2020
eee2e02
Remove Argo CI config
alexec Jan 6, 2020
2c4056b
lint
alexec Jan 6, 2020
d7f095e
ignore ui
alexec Jan 6, 2020
f90c8c7
make clis
alexec Jan 6, 2020
e483892
chore: update cache versions
alexec Jan 6, 2020
4837c10
docs: added docs for persistance features
alexec Jan 6, 2020
03f6c35
list directory
alexec Jan 6, 2020
4a26463
docs: spelling
alexec Jan 6, 2020
a5b0585
logging
alexec Jan 6, 2020
cf7b011
work-around to circleci
alexec Jan 6, 2020
6f2f941
Update config.yml
alexec Jan 6, 2020
de9f505
Update config.yml
alexec Jan 6, 2020
3e3f900
fix: Make sql works for both mysql and postgre (#1912)
whynowy Jan 7, 2020
5e4b588
lint + sort templates + template UI as filterable list
alexec Jan 7, 2020
bfe2d97
Merge branch 'apiserverimpl' of github.com:argoproj/argo into apiserv…
alexec Jan 7, 2020
fb0ff58
updated docs
alexec Jan 7, 2020
528133d
bits and bobs
alexec Jan 7, 2020
59c0aed
search
alexec Jan 7, 2020
daa5bd2
docs + help
alexec Jan 7, 2020
e31737a
Merge branch 'master' into apiserverimpl
simster7 Jan 7, 2020
678d5ae
Fix imports
simster7 Jan 7, 2020
8962a47
Fixes:
simster7 Jan 7, 2020
4556caf
error boundary + loading
alexec Jan 7, 2020
aa73fe2
Can create workflow tempaltes from UI
simster7 Jan 7, 2020
75d2f07
removed dup delete fields
alexec Jan 7, 2020
06ffb49
lint
alexec Jan 7, 2020
39803ec
vendor
alexec Jan 7, 2020
e84719f
ui
alexec Jan 7, 2020
8f72da8
layout
alexec Jan 7, 2020
49910f5
rm yamljs
alexec Jan 7, 2020
d46ed75
Fixed NoAuth issue
sarabala1979 Jan 7, 2020
619c8aa
Merge branch 'apiserverimpl' of https://github.com/argoproj/argo into…
sarabala1979 Jan 7, 2020
850669f
reduce workflow size
alexec Jan 7, 2020
a265031
ok
alexec Jan 7, 2020
079029b
continue
alexec Jan 7, 2020
bbb8434
continue
alexec Jan 7, 2020
008d19c
Remove leading space
whynowy Jan 8, 2020
ab84060
namespace filter
alexec Jan 8, 2020
2922c89
added missing labels
alexec Jan 8, 2020
350069e
help
alexec Jan 8, 2020
cf3c842
error boundary
alexec Jan 8, 2020
f5ce107
change creation endpoints
alexec Jan 8, 2020
494ef47
lint
alexec Jan 8, 2020
99b296a
refactor db logic removing unused methods
alexec Jan 8, 2020
156bafb
tidy up
alexec Jan 8, 2020
fea29e7
Cron Workflow UI Core
simster7 Jan 8, 2020
53a83d2
Cron Workflows app layer
simster7 Jan 8, 2020
1c94ed9
Upgrade argo-ui dependency
simster7 Jan 8, 2020
737aab3
deps
alexec Jan 8, 2020
3dbf433
Merge branch 'apiserverimpl' of github.com:argoproj/argo into apiserv…
alexec Jan 8, 2020
4d598eb
fix: stack overflow error
alexec Jan 8, 2020
b902a28
Enhanced log command for workflow
sarabala1979 Jan 8, 2020
77b677b
Merge branch 'apiserverimpl' of https://github.com/argoproj/argo into…
sarabala1979 Jan 8, 2020
1714828
adds support to list cron workflows
alexec Jan 8, 2020
39c1bf9
enhance cron list
alexec Jan 8, 2020
551ec35
lint
alexec Jan 8, 2020
8bbc8ec
add getter cron workflows
alexec Jan 8, 2020
f7141c1
add delete for cron workflows
alexec Jan 8, 2020
442852c
small changes
alexec Jan 8, 2020
d310a9e
Re-instated namespace for creation URLs.
alexec Jan 8, 2020
14628e7
Add Created on Cronworkflow
sarabala1979 Jan 8, 2020
66a29f8
Merge branch 'apiserverimpl' of https://github.com/argoproj/argo into…
sarabala1979 Jan 8, 2020
92ac216
Merge branch 'apiserverimpl' of https://github.com/argoproj/argo into…
sarabala1979 Jan 8, 2020
c77bfab
fix-up
alexec Jan 9, 2020
d17e2d2
remove ResubmitArchivedWorkflom
alexec Jan 9, 2020
7cb6e49
tidy up
alexec Jan 9, 2020
b53a5e0
remove namespace from archive apis
alexec Jan 9, 2020
a5f922f
fix
alexec Jan 9, 2020
302330d
updated cron ui
alexec Jan 9, 2020
d54459a
fix phases
alexec Jan 9, 2020
399f129
clean up deps
alexec Jan 9, 2020
eacda3c
ruthless pruning of dependencies
alexec Jan 9, 2020
aba7c84
Refactored Auth Token functionality
sarabala1979 Jan 9, 2020
45646fd
Merge branch 'apiserverimpl' of https://github.com/argoproj/argo into…
sarabala1979 Jan 9, 2020
61f7f7f
bug fix
alexec Jan 9, 2020
dfafb96
Delete Untitled
sarabala1979 Jan 9, 2020
9f838e2
test permission
whynowy Jan 9, 2020
b71e630
fix
alexec Jan 9, 2020
58353ae
Update manifests to ERSION
alexec Jan 9, 2020
bc8c31d
Update manifests to ERSION
alexec Jan 9, 2020
c424743
Update manifests to apiserverimpl
alexec Jan 9, 2020
eb04bd5
release
alexec Jan 9, 2020
1a926a0
bits
alexec Jan 9, 2020
f1c53bf
1
alexec Jan 9, 2020
e0f9dd9
1
alexec Jan 9, 2020
e8a0c9e
commen
alexec Jan 9, 2020
e3a40c2
lint
alexec Jan 9, 2020
6b793af
lint
alexec Jan 9, 2020
2498147
codegen
alexec Jan 9, 2020
dd5d521
faster
alexec Jan 9, 2020
79e0659
makefile
alexec Jan 9, 2020
9b09bec
goimports
alexec Jan 9, 2020
c5e278c
VERSION
alexec Jan 9, 2020
918eaa5
typo
alexec Jan 9, 2020
c5140af
makefile
alexec Jan 9, 2020
631c848
finished missing test
alexec Jan 9, 2020
6903277
corrected flag name
alexec Jan 9, 2020
efb9ab3
add TODO
alexec Jan 9, 2020
66e180c
manifests
alexec Jan 9, 2020
ea7d0d0
refactored
sarabala1979 Jan 9, 2020
bd42919
Merge branch 'apiserverimpl' of https://github.com/argoproj/argo into…
sarabala1979 Jan 9, 2020
6f7ec53
snapshot
alexec Jan 9, 2020
aa18841
v1
alexec Jan 10, 2020
85f8e39
ubuntu-1604:201903-01
alexec Jan 10, 2020
5712a70
catch errors
alexec Jan 10, 2020
c9ecf82
upload assets
alexec Jan 10, 2020
f65cd6e
dep ensure
alexec Jan 10, 2020
87ce187
remove bug in upload-asset.sh
alexec Jan 10, 2020
2f79f24
lint
alexec Jan 10, 2020
84a68c6
re-instate v0
alexec Jan 10, 2020
4131e5d
only pull images ifNotPresent, so not being able to reach Docker Hub …
alexec Jan 10, 2020
a98a00b
try fix
alexec Jan 10, 2020
2a0d7d7
fix: sed invalid
alexec Jan 10, 2020
6f277da
debugging
alexec Jan 10, 2020
1625138
push
alexec Jan 10, 2020
139b09f
downloading
alexec Jan 10, 2020
d776cc4
fix install
alexec Jan 10, 2020
6f1209b
fix: should not delete artifacts
alexec Jan 10, 2020
1025669
add manifests
alexec Jan 10, 2020
898f974
skip tests
alexec Jan 10, 2020
2ac5bf6
latest
alexec Jan 10, 2020
22b836f
latest
alexec Jan 10, 2020
b66d299
increase timeout
alexec Jan 10, 2020
823ba8b
yamls
alexec Jan 10, 2020
96f1ec9
quick-start
alexec Jan 10, 2020
3560bb9
yamls
alexec Jan 10, 2020
defda9e
chore: remove make of clis
alexec Jan 10, 2020
1f79091
Merge tag 'apiserverimpl' of github.com:argoproj/argo into apiserverimpl
alexec Jan 10, 2020
d676c67
Merge branch 'apiserverimpl' of github.com:argoproj/argo into apiserv…
alexec Jan 10, 2020
bf12b53
install kustomize
alexec Jan 10, 2020
0307e2e
codegen
alexec Jan 10, 2020
912be93
k3
alexec Jan 10, 2020
629ce06
docs: update releasing.md
alexec Jan 10, 2020
c0905a1
chore: add missing .codecov.yaml
alexec Jan 10, 2020
257a841
chore: try to install kustomize .. again
alexec Jan 10, 2020
edd21f7
chore: add `make pre-push`
alexec Jan 10, 2020
fbac0cd
fix: chmod pre-push hook
alexec Jan 10, 2020
d79bc93
/.vendor-new
alexec Jan 10, 2020
87cb8e2
delete .vendor-new if exists
alexec Jan 10, 2020
c75a496
chore: create dist dir
alexec Jan 10, 2020
68ac298
rename file
alexec Jan 10, 2020
93500b1
run e2e test pre-push
alexec Jan 10, 2020
6ea8c5d
pf
alexec Jan 10, 2020
dbd33cc
mkdir dist for CI
alexec Jan 10, 2020
e793564
added TODO for argo-server role
alexec Jan 10, 2020
e4e4b2e
re-order CI config
alexec Jan 10, 2020
6e42c2c
fix: try fix pf
alexec Jan 10, 2020
ca48000
fix: background portforward on CI
alexec Jan 10, 2020
1575035
feat: upload swagger assets to release
alexec Jan 10, 2020
0ec6e94
updated manifests
alexec Jan 10, 2020
5f5f187
remove redundancy
alexec Jan 10, 2020
d0946e5
add pre-commit target
alexec Jan 10, 2020
d154ede
added readinessProbe
alexec Jan 11, 2020
3fc61e6
add GCP authprovider and fixed in list call
sarabala1979 Jan 11, 2020
5ac8b0c
fixed lint
sarabala1979 Jan 11, 2020
8a21c24
Merge branch 'apiserverimpl' of https://github.com/argoproj/argo into…
sarabala1979 Jan 11, 2020
4302c43
lint
alexec Jan 11, 2020
54ab1bc
chore: logging
alexec Jan 11, 2020
ac8a62f
listen on 0.0.0.0:2746
alexec Jan 11, 2020
90a7931
added v2 token
alexec Jan 11, 2020
0c81d73
feat: add argo-server service account
alexec Jan 11, 2020
c9ce631
updated roles
alexec Jan 11, 2020
d5da88d
re-order build
alexec Jan 11, 2020
640e8d1
ci: fix build
alexec Jan 11, 2020
90a9d07
update manifests
alexec Jan 11, 2020
f6e4551
revert
alexec Jan 11, 2020
41e2189
do not scale down deployment, maybe this will fix CI
alexec Jan 11, 2020
8010e69
adds --force-namespace-isolation to controller
alexec Jan 11, 2020
962065c
typo
alexec Jan 11, 2020
191f1bb
namespace
alexec Jan 11, 2020
a47759e
1m
alexec Jan 11, 2020
607cfd9
namespace: argo
alexec Jan 11, 2020
c25cbff
adds --force-namespace-isolation
alexec Jan 11, 2020
4b3e965
FORCE_NAMESPACE_ISOLATION
alexec Jan 11, 2020
5d31a06
logging
alexec Jan 11, 2020
37d5c45
bug
alexec Jan 11, 2020
145eb6d
logging
alexec Jan 11, 2020
a24db6b
fix namespace
alexec Jan 11, 2020
eba9582
add delay
alexec Jan 11, 2020
fd0dc30
run smoke tests before e2e on CI
alexec Jan 11, 2020
aa7d7c5
add debug logging
alexec Jan 11, 2020
3280038
added guard of condition
alexec Jan 11, 2020
e2b8166
simplify update
alexec Jan 11, 2020
6f49e62
fix: send offloaded node status to watch
alexec Jan 11, 2020
2b88dca
test: add wait for workflow to be deleted
alexec Jan 11, 2020
0ae6b19
test: print more diagnostics on failure
alexec Jan 11, 2020
29fb493
chore: spelling
alexec Jan 11, 2020
fafdd9b
chore: remove debug logging
alexec Jan 11, 2020
ae99a28
test: watch should return offloaded node status
alexec Jan 11, 2020
0f89ff7
chore: added comments
alexec Jan 11, 2020
50acdbc
cron isolated informer
alexec Jan 11, 2020
6a325a5
roles
alexec Jan 11, 2020
4ee7602
get nodes
alexec Jan 11, 2020
a9de24a
lint
alexec Jan 11, 2020
5334c60
stuff
alexec Jan 11, 2020
bb004b1
postgres.host=localhost
alexec Jan 11, 2020
89805df
Incorporated Jesse Initial Comments
sarabala1979 Jan 12, 2020
c1ea1bd
Merge branch 'apiserverimpl' of https://github.com/argoproj/argo into…
sarabala1979 Jan 12, 2020
96cfc44
Update workflow_server_test.go
sarabala1979 Jan 12, 2020
2b0f786
Update workflow_server_test.go
sarabala1979 Jan 12, 2020
80b230c
Update workflow_server_test.go
sarabala1979 Jan 12, 2020
9e4bba9
incorporated Jesse comments
sarabala1979 Jan 12, 2020
f2bc0c8
Merge branch 'master' into apiserverimpl
simster7 Jan 13, 2020
79ed7ff
New CLI tests
simster7 Jan 13, 2020
51dcb1c
Merge branch 'master' into apiserverimpl
simster7 Jan 13, 2020
db68dbd
Adds diagnostics to tests.
alexec Jan 13, 2020
43ac0ec
Minor test rework
simster7 Jan 13, 2020
18058f5
Merge branch 'apiserverimpl' of https://github.com/argoproj/argo into…
simster7 Jan 13, 2020
cc166ea
Removed Kubeservice
sarabala1979 Jan 13, 2020
f840729
Merge branch 'apiserverimpl' of https://github.com/argoproj/argo into…
sarabala1979 Jan 13, 2020
38d20e0
Fix CronWorkflow tests
simster7 Jan 13, 2020
bbbadcb
Merge branch 'apiserverimpl' of https://github.com/argoproj/argo into…
simster7 Jan 13, 2020
c4ae91c
disable forcing off offloading
alexec Jan 13, 2020
01c6e9e
Add workflow create verb to namespace install
simster7 Jan 13, 2020
690e05a
Skip legacy test
simster7 Jan 13, 2020
960d962
add github action
alexec Jan 14, 2020
bc1092b
fix links
alexec Jan 14, 2020
19185f7
fix for code review comment
alexec Jan 14, 2020
5aa433a
remove quick start
alexec Jan 14, 2020
adbfffe
fix version
alexec Jan 14, 2020
bc3da04
Merge branch 'apiserverimpl' of github.com:argoproj/argo into apiserv…
alexec Jan 14, 2020
b4a7e05
reinstate behaviour of Dockerfile
alexec Jan 14, 2020
4b3e827
Added WorkflowTemplate test infra and smoke test
simster7 Jan 14, 2020
f8378db
Merge branch 'apiserverimpl' of https://github.com/argoproj/argo into…
simster7 Jan 14, 2020
7d89014
logging
alexec Jan 14, 2020
6caa777
re-order more flakey task earlier
alexec Jan 14, 2020
1cd7124
Dockerfile
alexec Jan 14, 2020
64d15e4
lock yarn for speed
alexec Jan 14, 2020
08d76c3
update watch
alexec Jan 14, 2020
33f3b41
Merge branch 'master' into apiserverimpl
alexec Jan 14, 2020
a6b421c
post-merge fixes
alexec Jan 14, 2020
e2d4a7f
work!
alexec Jan 14, 2020
b61fe1a
more logging
alexec Jan 14, 2020
e1b0cb9
Adds `argo server` command. Fixes #1966
alexec Jan 14, 2020
ebfa31c
Merge branch 'master' into argo-server
alexec Jan 15, 2020
3ff168e
fix post merge errors
alexec Jan 15, 2020
683fa80
Merge branch 'master' into argo-server
alexec Jan 15, 2020
e2190c8
post merge issue fix
alexec Jan 15, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
74 changes: 0 additions & 74 deletions .argo-ci/ci.yaml

This file was deleted.

52 changes: 33 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ commands:
- restore_cache:
name: Restore vendor cache
keys:
- vendor-v2-{{ checksum "Gopkg.lock" }}-{{ .Environment.CIRCLE_JOB }}
- vendor-v1-{{ checksum "Gopkg.lock" }}-{{ .Environment.CIRCLE_JOB }}
- vendor-v6-{{ checksum "Gopkg.lock" }}-{{ .Environment.CIRCLE_JOB }}
- run:
name: Ensure dependencies
command: dep ensure -v
command: |
# dep ensure takes 5m, but is only needed if not cached
[[ -e vendor ]] || make vendor && touch vendor
- save_cache:
name: Save vendor cache
key: vendor-v2-{{ checksum "Gopkg.lock" }}-{{ .Environment.CIRCLE_JOB }}
key: vendor-v6-{{ checksum "Gopkg.lock" }}-{{ .Environment.CIRCLE_JOB }}
paths:
- vendor
when: always
install_golang:
steps:
- run:
Expand All @@ -31,18 +33,20 @@ commands:
steps:
- save_cache:
name: Save Golang cache
key: go-v1-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}
# https://circleci.com/docs/2.0/language-go/
key: go-v5-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}
paths:
- /home/circleci/.cache/go-build
- /home/circleci/sdk/go1.12.6
when: always
restore_go_cache:
steps:
- restore_cache:
name: Restore Golang cache
keys:
- go-v1-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}
- go-v1-master-{{ .Environment.CIRCLE_JOB }}
- go-v5-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}
- go-v5-master-{{ .Environment.CIRCLE_JOB }}
- go-v4-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}
- go-v4-master-{{ .Environment.CIRCLE_JOB }}
go_junit_report:
steps:
- run:
Expand All @@ -52,7 +56,7 @@ jobs:
test:
working_directory: /home/circleci/.go_workspace/src/github.com/argoproj/argo
machine:
image: circleci/classic:201808-01
image: ubuntu-1604:201903-01
steps:
- restore_go_cache
- install_golang
Expand Down Expand Up @@ -80,8 +84,11 @@ jobs:
e2e:
working_directory: /home/circleci/.go_workspace/src/github.com/argoproj/argo
machine:
image: circleci/classic:201808-01
image: ubuntu-1604:201903-01
steps:
- run:
name: Install Kustomize
command: cd /usr/local/bin && curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash
- run:
name: Install and start K3S v1.0.0
command: curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.0.0 INSTALL_K3S_EXEC=--docker K3S_KUBECONFIG_MODE=644 sh -
Expand All @@ -103,14 +110,7 @@ jobs:
name: Create KUBECONFIG
command: |
mkdir -p ~/.kube
cp /etc/rancher/k3s/k3s.yaml ~/.kube/config
- run: KUBECONFIG=~/.kube/config make cli start-e2e
- run:
name: Follow controller logs, to help diagnose failures
command: |
sleep 10
make logs-e2e
background: true
cat /etc/rancher/k3s/k3s.yaml | sed "s/127.0.0.1/$(hostname)/g" > ~/.kube/config
- run:
name: Watch Docker events, to help diagnose failures
command: docker events
Expand All @@ -119,6 +119,20 @@ jobs:
name: Watch Kubernetes events, to help diagnose failures
command: kubectl -n argo get events --watch
background: true
- run:
name: Start Argo
command: mkdir dist && KUBECONFIG=~/.kube/config make start
- run:
name: Establish port forward
command: make pf
background: true
- run:
name: Follow logs, to help diagnose failures
command: make logs
background: true
- run:
name: Run smoke tests
command: make smoke
- run:
name: Run tests
command: |
Expand Down Expand Up @@ -153,7 +167,7 @@ jobs:
# - run: ./node_modules/.bin/codecov -p ..
- run:
name: Build
command: NODE_ENV='production' yarn build
command: yarn build
- run:
name: Lint
command: yarn lint
Expand Down
11 changes: 11 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ignore:
- "cmd/server/static/files.go"
- "pkg/client"
coverage:
status:
# we've found this not to be useful
patch: off
project:
default:
# allow test coverage to drop by 2%, assume that it's typically due to CI problems
threshold: 2
6 changes: 5 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Prevent vendor directory from being copied to ensure we are not not pulling unexpected cruft from
# a user's workspace, and are only building off of what is locked by dep.
.git
vendor
.idea
assets
coverage.out
dist
vendor
ui/dist
ui/node_modules
14 changes: 14 additions & 0 deletions .github/workflows/dockerimage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Docker Image CI

on: [push]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ dist/
# delve debug binaries
cmd/**/debug
hack/**/debug
/argo
/argoexec
debug.test
*.iml
coverage.out
/coverage.out
.envrc
/.vendor-new
/workflow-controller
14 changes: 14 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
run:
tests: false
deadline: 2m
skip-files:
- "cmd/server/static/files.go"
- "pkg/client"
- "vendor/"
- "ui/"
linters:
enable:
- goimports
linters-settings:
goimports:
local-prefixes: github.com/argoproj/argo
51 changes: 21 additions & 30 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,6 @@ ENV DEP_VERSION=0.5.0
RUN wget https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -O /usr/local/bin/dep && \
chmod +x /usr/local/bin/dep

# Install golangci-lint
ENV GOLANGCI_LINT_VERSION=1.16.0
RUN curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/v$GOLANGCI_LINT_VERSION/install.sh| sh -s -- -b $(go env GOPATH)/bin v$GOLANGCI_LINT_VERSION

# Install gometalinter
# Keep gometalinter to avoid CI failures during the linter migration.
# We can remove it after enough time has passed.
ENV GOMETALINTER_VERSION=2.0.12
RUN curl -sLo- https://github.com/alecthomas/gometalinter/releases/download/v${GOMETALINTER_VERSION}/gometalinter-${GOMETALINTER_VERSION}-linux-amd64.tar.gz | \
tar -xzC "$GOPATH/bin" --exclude COPYING --exclude README.md --strip-components 1 -f- && \
ln -s $GOPATH/bin/gometalinter $GOPATH/bin/gometalinter.v2


####################################################################################################
# argoexec-base
# Used as the base for both the release and development version of argoexec
Expand All @@ -56,44 +43,48 @@ RUN apt-get update && \
COPY hack/ssh_known_hosts /etc/ssh/ssh_known_hosts
COPY --from=builder /usr/local/bin/docker /usr/local/bin/

####################################################################################################

FROM node:11.15.0 as argo-ui

ADD ["ui", "."]

RUN yarn install --frozen-lockfile --ignore-optional --non-interactive
RUN yarn build

####################################################################################################
# Argo Build stage which performs the actual build of Argo binaries
####################################################################################################
FROM builder as argo-build

# A dummy directory is created under $GOPATH/src/dummy so we are able to use dep
# to install all the packages of our dep lock file
COPY Gopkg.toml ${GOPATH}/src/dummy/Gopkg.toml
COPY Gopkg.lock ${GOPATH}/src/dummy/Gopkg.lock

RUN cd ${GOPATH}/src/dummy && \
dep ensure -vendor-only && \
mv vendor/* ${GOPATH}/src/ && \
rmdir vendor

# Perform the build
WORKDIR /go/src/github.com/argoproj/argo
COPY . .
ARG MAKE_TARGET="controller executor cli-linux-amd64"
RUN make $MAKE_TARGET

# stop the annoying git related error messages
RUN git init
RUN git remote add origin https://github.com/argoproj/argo.git
RUN git fetch --no-tags --depth=1 origin
COPY --from=argo-ui node_modules ui/node_modules
RUN mkdir -p ui/dist
COPY --from=argo-ui dist/app ui/dist/app
# stop make from trying to re-build this without yarn installed
RUN touch ui/dist/app
RUN make dist/argo-linux-amd64 dist/workflow-controller-linux-amd64 dist/argoexec-linux-amd64

####################################################################################################
# argoexec
####################################################################################################
FROM argoexec-base as argoexec
COPY --from=argo-build /go/src/github.com/argoproj/argo/dist/argoexec /usr/local/bin/

COPY --from=argo-build /go/src/github.com/argoproj/argo/dist/argoexec-linux-amd64 /usr/local/bin/argoexec
ENTRYPOINT [ "argoexec" ]

####################################################################################################
# workflow-controller
####################################################################################################
FROM scratch as workflow-controller
COPY --from=argo-build /go/src/github.com/argoproj/argo/dist/workflow-controller /bin/
COPY --from=argo-build /go/src/github.com/argoproj/argo/dist/workflow-controller-linux-amd64 /bin/workflow-controller
ENTRYPOINT [ "workflow-controller" ]


####################################################################################################
# argocli
####################################################################################################
Expand Down
5 changes: 0 additions & 5 deletions Dockerfile.argoexec-dev

This file was deleted.

Loading