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

Self-contained minikube execution on local machine #15

Open
peterkir opened this issue Jun 29, 2019 · 3 comments
Open

Self-contained minikube execution on local machine #15

peterkir opened this issue Jun 29, 2019 · 3 comments
Assignees

Comments

@peterkir
Copy link
Contributor

As a developer
I want to be able to execute the complete environment without internet access
so that there are no dependencies to remote connections.

Acceptance criteria:

Configure local docker environment script

  • enablement of local docker registry

Startup shell script available containing...

  1. build bundle from source - e.g. maven or gradle
  2. build docker container from bundle based java alpine image
  3. launch minikube with contained "docker image registry"
  4. publish container image into registry
  5. launch inside minikube 2 pods of io.docker.osgi.tut

Shutdown shell script containing a graceful minikube shutdown

HINTS:
Windows DNS can be faked via C:/Windows/System32/drivers/etc/hosts - modification only as Admin feasible

@peterkir peterkir assigned peterkir and A7exSchin and unassigned peterkir Jun 29, 2019
@A7exSchin
Copy link
Contributor

A7exSchin commented Jul 1, 2019

Step 1: Deploy a preconfigured .json file to "C:/Program Files/Docker/config/daemon.json" or "/var/lib/docker" on Linux via script (restart docker)
-- preconfigured means with the local registry server allocated
Step 2: build project with script
From now on follow 3.-5. above

@A7exSchin
Copy link
Contributor

A7exSchin commented Jul 11, 2019

minikube wants to pull from DockerHub, refuses to pull from local registry

Workaround:
https://stackoverflow.com/questions/42564058/how-to-use-local-docker-images-with-minikube

Workaround needs a rebuilt image from inside the minikube docker env.

rework env vars for including in more then one shell session.

@peterkir
Copy link
Contributor Author

https://goharbor.io/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants