cuddly-holiday-9089
09/21/2022, 6:41 AM#!/bin/bash
# Checkout a branch
git checkout 1571-re-dex-spike
# Sync git submodule
# NOTE: This will cleanup dangling files inside the submodule too (because of `git clean -dffx`).
# Adapt this command if necessary
git submodule sync --recursive && git submodule update --init --recursive && git submodule foreach --recursive "git co . && git reset --hard && git clean -dffx"
# Prepare a dev cluster
make acceptance-cluster-setup
# Configure KUBECONFIG to talk to the dev cluster
export KUBECONFIG=$PWD/tmp/acceptance-kubeconfig
# Install cert-manager
make install-cert-manager
# Install Epinio from the checked out commit
make prepare_environmnet_k3d
# You should now be able to use Epinio
busy-teacher-96897
09/21/2022, 6:42 AMmake prepare_environmnet_k3d
is:
...
Creating the PVC
persistentvolumeclaim/epinio-binary unchanged
Creating the dummy copier Pod
pod/epinio-copier created
Waiting for dummy pod to be ready
pod/epinio-copier condition met
Copying the binary on the PVC
total 80504
-rwxr-xr-x 1 503 staff 82435126 Sep 28 05:33 epinio
Deleting the epinio-copier to avoid multi-attach issue between pods
pod "epinio-copier" deleted
Patching the epinio-server deployment to use the copied binary
deployment.apps/epinio-server patched
Waiting for the rollout of the deployment to complete
Waiting for deployment spec update to be observed...
Waiting for deployment "epinio-server" rollout to finish: 0 out of 1 new replicas have been updated...
Waiting for deployment "epinio-server" rollout to finish: 1 old replicas are pending termination...
Waiting for deployment "epinio-server" rollout to finish: 1 old replicas are pending termination...
deployment "epinio-server" successfully rolled out
-------------------------------------
Cleanup old settings
-------------------------------------
Trying to login../scripts/prepare-environment-k3d.sh: line 47: ./dist/epinio-darwin-amd64: No such file or directory
../scripts/prepare-environment-k3d.sh: line 47: ./dist/epinio-darwin-amd64: No such file or directory
../scripts/prepare-environment-k3d.sh: line 47: ./dist/epinio-darwin-amd64: No such file or directory
../scripts/prepare-environment-k3d.sh: line 47: ./dist/epinio-darwin-amd64: No such file or directory
../scripts/prepare-environment-k3d.sh: line 47: ./dist/epinio-darwin-amd64: No such file or directory
Failed to run ./dist/epinio-darwin-amd64 login -u admin -p password --trust-ca <https://epinio.172.19.0.2.omg.howdoi.website> after 5 attempts!
make: *** [prepare_environment_k3d] Error
First issue is that i only have dist/epinio-linux-amd64
file but it is looking for dist/epinio-darwin-amd64
Next, I try to use my own epinio to login... but I cant... Looking at the docker, only port 80 was open and no 443 in k3d-epinio-acceptance
cluster.
I will try to install this in a C9 linux machine to see if it work tmrcuddly-holiday-9089
09/29/2022, 5:59 AMEPINIO_SYSTEM_DOMAIN
(https://github.com/epinio/epinio/blob/f9ab365e2fc8f469841dd083647c25a11f6d7ccf/scripts/prepare-environment-k3d.sh#L84) to something lilke <http://you.host.ip.address.sslip.io|you.host.ip.address.sslip.io>
because by default the script will use the container's IP address.