Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Shawn Hurley <shawn@hurley.page>
  • Loading branch information
shawn-hurley committed Apr 24, 2024
1 parent 91b2abd commit d784948
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 112 deletions.
56 changes: 0 additions & 56 deletions .github/workflows/demo-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,6 @@ jobs:
run: |
make build-external
podman build -t quay.io/konveyor/analyzer-lsp:latest -f Dockerfile .
# run: |
# function build_image {
# dir=$1
# name=$2
# pushd ${dir}
# go mod edit -replace=github.com/konveyor/analyzer-lsp=/analyzer-lsp
# podman build -t quay.io/konveyor/${name}:latest -f Dockerfile ../../
# popd
# }
# pushd ./external-providers/
# build_image golang-dependency-provider golang-dependency-provider
# build_image java-external-provider java-external-provider
# build_image yq-external-provider yq-external-provider
# build_image generic-external-provider generic-external-provider
# popd

# run the demo in a podman pod
- name: run demo image
Expand All @@ -64,46 +48,6 @@ jobs:
podman build -f demo-local.Dockerfile -t localhost/testing:latest
make run-demo-image
# run: |
# function run_provider {
# name=$1
# img=$2
# port=$3
# podman run -d --pod analyzer --name ${name} -v test-data:/analyzer-lsp/examples/:Z \
# quay.io/konveyor/${img}:latest --port ${port}
# }

# mkdir /tmp/examples/ && \
# cp -r examples/* /tmp/examples/ && \
# cp -r ./external-providers/java-external-provider/examples/* /tmp/examples/
# podman volume create test-data
# podman run --rm -v test-data:/target -v /tmp/examples/:/src/:Z \
# --entrypoint=cp alpine -a /src/. /target/
# podman pod create --name=analyzer
# run_provider golang generic-external-provider 9999
# run_provider nodejs generic-external-provider 9998
# run_provider python generic-external-provider 9997
# run_provider java java-external-provider 9996
# run_provider yq yq-external-provider 9995

# jq 'map(
# if .name == "go" then del(.binaryPath) | .address = "localhost:9999"
# elif .name == "nodejs" then del(.binaryPath) | .address = "localhost:9998"
# elif .name == "python" then del(.binaryPath) | .address = "localhost:9997"
# elif .name == "java" then del(.binaryPath) | .address = "localhost:9996"
# elif .name == "yaml" then del(.binaryPath) | .address = "localhost:9995"
# else .
# end
# )' provider_container_settings.json | tee provider_container_settings.json

# podman build -f demo.Dockerfile -t localhost/testing:latest
# podman run --entrypoint /usr/local/bin/konveyor-analyzer \
# --pod=analyzer \
# -v $(pwd)/demo-dep-output.yaml:/analyzer-lsp/demo-dep-output.yaml:Z \
# -v $(pwd)/demo-output.yaml:/analyzer-lsp/output.yaml:Z \
# localhost/testing:latest --dep-output-file=demo-dep-output.yaml


- name: install yq for testing
run: go install github.com/mikefarah/yq/v4@latest

Expand Down
Loading

0 comments on commit d784948

Please sign in to comment.