I have code changes, specifically additional loggers in autoscaler which I would like to deploy and test in minikube env, I have the followed building steps mentioned here:
The example cluster that I am deploying pulls ray-nightly containers, can you please help how can I test code changes in my workspace by deploying on minikube ?
Maybe you could try building your own docker image and then using that for the docker setup? I think you can use the following to create your own image:
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
e82dcdd7e122 2 minutes ago 1.27GB
rayproject/base-deps nightly 23c7768bc874 3 minutes ago 582MB
2f32d7c0bb50 3 minutes ago 582MB
rayproject/ray-deps nightly d1d33793e182 2 hours ago 1.27GB
ubuntu focal 7e0aa2d69a15 5 days ago 72.7MB
Can you please help, which images should I get added to cluster-config
docker build --no-cache -t rayproject/development docker/development
Sending build context to Docker daemon 35.68MB
Step 1/13 : FROM rayproject/ray-deps:latest
latest: Pulling from rayproject/ray-deps
345e3491a907: Already exists
57671312ef6f: Already exists
5e9250ddb7d0: Already exists
eb719956b105: Pull complete
8cd8a3afa23c: Pull complete
cd3cf60c1c0b: Pull complete
11f3db4e7797: Pull complete
Digest: sha256:bf96885ce5b196af9373ba258c9be74a5e1b43afe65411ad061bdbfcd05828c4
Status: Downloaded newer image for rayproject/ray-deps:latest
—> b791cde6d299
Step 2/13 : ADD ray.tar /ray
—> 0bda8bb7c522
Step 3/13 : ADD git-rev /ray/git-rev
—> 7c89be128584
Step 4/13 : RUN sudo apt-get update && sudo apt-get install -y curl unzip cmake gcc g++ && sudo apt-get clean
—> Running in d1e61a6781a0
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:1 https://packages.cloud.google.com/apt kubernetes-xenial InRelease [9383 B]
Get:4 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [783 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:6 https://packages.cloud.google.com/apt kubernetes-xenial/main amd64 Packages [46.2 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:9 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [21.7 kB]
Get:10 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [690 kB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [243 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [29.7 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [958 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [274 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1198 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [4305 B]
Fetched 17.7 MB in 3s (5429 kB/s)
Reading package lists…
Reading package lists…
Building dependency tree…
Reading state information…
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
g++ : Depends: g+±9 (>= 9.3.0-3~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The command ‘/bin/sh -c sudo apt-get update && sudo apt-get install -y curl unzip cmake gcc g++ && sudo apt-get clean’ returned a non-zero code: 100
Hello I have install gcc 9 on ubuntu 18 but I am still unable to build the container:
$ gcc --version
gcc (Ubuntu 9.3.0-11ubuntu0~18.04.1) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
I get the same error as posted above :
The following packages have unmet dependencies:
g++ : Depends: g+±9 (>= 9.3.0-3~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The command ‘/bin/sh -c sudo apt-get update && sudo apt-get install -y curl unzip cmake gcc g++ && sudo apt-get clean’ returned a non-zero code: 100
Alternatively, you could do start a new container using a pre-built image, modify some of the ray source code, then do docker commit to create a new image with your modifications.