diff --git a/01-intro.html b/01-intro.html index 7736ffd..95a3495 100644 --- a/01-intro.html +++ b/01-intro.html @@ -454,7 +454,7 @@

Too much to install? I just want a quick try…

-
+

If you don’t have access to a Linux terminal or prefer not to install tools locally, you can use Google Cloud Shell. You’ll need a Google diff --git a/02-storage.html b/02-storage.html index d16302f..bab6554 100644 --- a/02-storage.html +++ b/02-storage.html @@ -385,7 +385,7 @@

How to change them?

-
+

If they are not what you expect (in case you have many), change them with

@@ -441,7 +441,7 @@

How to link a project to your billing account?

-
+

First list the billing accounts

diff --git a/03-disk-image-manual.html b/03-disk-image-manual.html index fc515a1..1667115 100644 --- a/03-disk-image-manual.html +++ b/03-disk-image-manual.html @@ -452,13 +452,14 @@

BASH

Mount the disk

-
kati@vm-work ~ $ sudo mkdir -p /mnt/disks/img
-kati@vm-work ~ $ sudo mount -o discard,defaults /dev/sdb /mnt/disks/img
-kati@vm-work ~ $ sudo chmod a+w /mnt/disks/img
+
$ sudo mkdir -p /mnt/disks/img
+$ sudo mount -o discard,defaults /dev/sdb /mnt/disks/img
+$ sudo chmod a+w /mnt/disks/img

Configure docker and pull the image

-

Modify the docker config file to store data in the mounted disk

-
$ cat /etc/docker/daemon.json
-{
+

Add a line "data-root": "/mnt/disks/img" to the docker +config file /etc/docker/daemon.json so that docker stores +data in the mounted disk. The file becomes:

+
{
         "live-restore": true,
         "log-opts": {
                 "tag": "{{.Name}}"
@@ -467,21 +468,22 @@ 

BASH

-

Remember the comma before the line that you add!

+

Remember the comma before the line that you added! I made the +mistake, you do not have to…

Restart the docker service

sudo systemctl restart docker
-

Pull the images that you need

+

Pull the images that you need. In the example workflow we use three +of them (in addition to a tiny python image), so we pull:

docker pull ghcr.io/katilp/pfnano-image-build:main
-
 docker pull cernopendata/cernopendata-client
-
 docker pull rootproject/root:latest
-
kati@vm-work ~ $ docker image ls
+

After the pull is ready, you can see them with:

+
$ docker image ls
 REPOSITORY                          TAG       IMAGE ID       CREATED         SIZE
 rootproject/root                    latest    34eb35079484   4 weeks ago     2.76GB
 cernopendata/cernopendata-client    latest    f690d7308889   7 weeks ago     282MB
 ghcr.io/katilp/pfnano-image-build   main      d95521bc96a9   11 months ago   32.1GB
-

Exit from the VM and stop it

+

Exit from the VM with exit and stop it

gcloud compute instances stop vm-work

Create the image


gcloud compute images create pfnano-image-disk --project=hip-new-full-account --source-disk=pfnano-disk --source-disk-zone=europe-west4-c --storage-location=europe-west4
diff --git a/aio.html b/aio.html index ea3e43d..eee72e9 100644 --- a/aio.html +++ b/aio.html @@ -496,7 +496,7 @@

Too much to install? I just want a quick try…

-
+

If you don’t have access to a Linux terminal or prefer not to install tools locally, you can use Google Cloud Shell. You’ll need a Google @@ -614,7 +614,7 @@

How to change them?

-
+

If they are not what you expect (in case you have many), change them with

@@ -673,7 +673,7 @@

How to link a project to your billing account?

-
+

First list the billing accounts

@@ -943,15 +943,16 @@

BASH

Mount the disk


-
kati@vm-work ~ $ sudo mkdir -p /mnt/disks/img
-kati@vm-work ~ $ sudo mount -o discard,defaults /dev/sdb /mnt/disks/img
-kati@vm-work ~ $ sudo chmod a+w /mnt/disks/img
+
$ sudo mkdir -p /mnt/disks/img
+$ sudo mount -o discard,defaults /dev/sdb /mnt/disks/img
+$ sudo chmod a+w /mnt/disks/img

Configure docker and pull the image


-

Modify the docker config file to store data in the mounted disk

-
$ cat /etc/docker/daemon.json
-{
+

Add a line "data-root": "/mnt/disks/img" to the docker +config file /etc/docker/daemon.json so that docker stores +data in the mounted disk. The file becomes:

+
{
         "live-restore": true,
         "log-opts": {
                 "tag": "{{.Name}}"
@@ -960,21 +961,22 @@ 

BASH

-

Remember the comma before the line that you add!

+

Remember the comma before the line that you added! I made the +mistake, you do not have to…

Restart the docker service

sudo systemctl restart docker
-

Pull the images that you need

+

Pull the images that you need. In the example workflow we use three +of them (in addition to a tiny python image), so we pull:

docker pull ghcr.io/katilp/pfnano-image-build:main
-
 docker pull cernopendata/cernopendata-client
-
 docker pull rootproject/root:latest
-
kati@vm-work ~ $ docker image ls
+

After the pull is ready, you can see them with:

+
$ docker image ls
 REPOSITORY                          TAG       IMAGE ID       CREATED         SIZE
 rootproject/root                    latest    34eb35079484   4 weeks ago     2.76GB
 cernopendata/cernopendata-client    latest    f690d7308889   7 weeks ago     282MB
 ghcr.io/katilp/pfnano-image-build   main      d95521bc96a9   11 months ago   32.1GB
-

Exit from the VM and stop it

+

Exit from the VM with exit and stop it

gcloud compute instances stop vm-work

Create the image

diff --git a/instructor/01-intro.html b/instructor/01-intro.html index 729c764..d5a8d06 100644 --- a/instructor/01-intro.html +++ b/instructor/01-intro.html @@ -456,7 +456,7 @@

Too much to install? I just want a quick try…

-
+

If you don’t have access to a Linux terminal or prefer not to install tools locally, you can use Google Cloud Shell. You’ll need a Google diff --git a/instructor/02-storage.html b/instructor/02-storage.html index e97791e..f9cd802 100644 --- a/instructor/02-storage.html +++ b/instructor/02-storage.html @@ -387,7 +387,7 @@

How to change them?

-
+

If they are not what you expect (in case you have many), change them with

@@ -443,7 +443,7 @@

How to link a project to your billing account?

-
+

First list the billing accounts

diff --git a/instructor/03-disk-image-manual.html b/instructor/03-disk-image-manual.html index 61ed49e..b8ab901 100644 --- a/instructor/03-disk-image-manual.html +++ b/instructor/03-disk-image-manual.html @@ -454,13 +454,14 @@

BASH

Mount the disk

-
kati@vm-work ~ $ sudo mkdir -p /mnt/disks/img
-kati@vm-work ~ $ sudo mount -o discard,defaults /dev/sdb /mnt/disks/img
-kati@vm-work ~ $ sudo chmod a+w /mnt/disks/img
+
$ sudo mkdir -p /mnt/disks/img
+$ sudo mount -o discard,defaults /dev/sdb /mnt/disks/img
+$ sudo chmod a+w /mnt/disks/img

Configure docker and pull the image

-

Modify the docker config file to store data in the mounted disk

-
$ cat /etc/docker/daemon.json
-{
+

Add a line "data-root": "/mnt/disks/img" to the docker +config file /etc/docker/daemon.json so that docker stores +data in the mounted disk. The file becomes:

+
{
         "live-restore": true,
         "log-opts": {
                 "tag": "{{.Name}}"
@@ -469,21 +470,22 @@ 

BASH

-

Remember the comma before the line that you add!

+

Remember the comma before the line that you added! I made the +mistake, you do not have to…

Restart the docker service

sudo systemctl restart docker
-

Pull the images that you need

+

Pull the images that you need. In the example workflow we use three +of them (in addition to a tiny python image), so we pull:

docker pull ghcr.io/katilp/pfnano-image-build:main
-
 docker pull cernopendata/cernopendata-client
-
 docker pull rootproject/root:latest
-
kati@vm-work ~ $ docker image ls
+

After the pull is ready, you can see them with:

+
$ docker image ls
 REPOSITORY                          TAG       IMAGE ID       CREATED         SIZE
 rootproject/root                    latest    34eb35079484   4 weeks ago     2.76GB
 cernopendata/cernopendata-client    latest    f690d7308889   7 weeks ago     282MB
 ghcr.io/katilp/pfnano-image-build   main      d95521bc96a9   11 months ago   32.1GB
-

Exit from the VM and stop it

+

Exit from the VM with exit and stop it

gcloud compute instances stop vm-work

Create the image


gcloud compute images create pfnano-image-disk --project=hip-new-full-account --source-disk=pfnano-disk --source-disk-zone=europe-west4-c --storage-location=europe-west4
diff --git a/instructor/aio.html b/instructor/aio.html index cf36e60..5468476 100644 --- a/instructor/aio.html +++ b/instructor/aio.html @@ -499,7 +499,7 @@

Too much to install? I just want a quick try…

-
+

If you don’t have access to a Linux terminal or prefer not to install tools locally, you can use Google Cloud Shell. You’ll need a Google @@ -618,7 +618,7 @@

How to change them?

-
+

If they are not what you expect (in case you have many), change them with

@@ -677,7 +677,7 @@

How to link a project to your billing account?

-
+

First list the billing accounts

@@ -948,15 +948,16 @@

BASH

Mount the disk


-
kati@vm-work ~ $ sudo mkdir -p /mnt/disks/img
-kati@vm-work ~ $ sudo mount -o discard,defaults /dev/sdb /mnt/disks/img
-kati@vm-work ~ $ sudo chmod a+w /mnt/disks/img
+
$ sudo mkdir -p /mnt/disks/img
+$ sudo mount -o discard,defaults /dev/sdb /mnt/disks/img
+$ sudo chmod a+w /mnt/disks/img

Configure docker and pull the image


-

Modify the docker config file to store data in the mounted disk

-
$ cat /etc/docker/daemon.json
-{
+

Add a line "data-root": "/mnt/disks/img" to the docker +config file /etc/docker/daemon.json so that docker stores +data in the mounted disk. The file becomes:

+
{
         "live-restore": true,
         "log-opts": {
                 "tag": "{{.Name}}"
@@ -965,21 +966,22 @@ 

BASH

-

Remember the comma before the line that you add!

+

Remember the comma before the line that you added! I made the +mistake, you do not have to…

Restart the docker service

sudo systemctl restart docker
-

Pull the images that you need

+

Pull the images that you need. In the example workflow we use three +of them (in addition to a tiny python image), so we pull:

docker pull ghcr.io/katilp/pfnano-image-build:main
-
 docker pull cernopendata/cernopendata-client
-
 docker pull rootproject/root:latest
-
kati@vm-work ~ $ docker image ls
+

After the pull is ready, you can see them with:

+
$ docker image ls
 REPOSITORY                          TAG       IMAGE ID       CREATED         SIZE
 rootproject/root                    latest    34eb35079484   4 weeks ago     2.76GB
 cernopendata/cernopendata-client    latest    f690d7308889   7 weeks ago     282MB
 ghcr.io/katilp/pfnano-image-build   main      d95521bc96a9   11 months ago   32.1GB
-

Exit from the VM and stop it

+

Exit from the VM with exit and stop it

gcloud compute instances stop vm-work

Create the image

diff --git a/md5sum.txt b/md5sum.txt index 965a3d4..b6541ff 100644 --- a/md5sum.txt +++ b/md5sum.txt @@ -6,7 +6,7 @@ "links.md" "8184cf4149eafbf03ce8da8ff0778c14" "site/built/links.md" "2024-06-19" "episodes/01-intro.md" "ae0534dc9ecd26e0c486ecac9e531fcb" "site/built/01-intro.md" "2024-10-14" "episodes/02-storage.md" "7ada170ff81f163e0c458aa1d6964e5b" "site/built/02-storage.md" "2024-10-16" -"episodes/03-disk-image-manual.md" "b3292e395e63c7046a452a4c89e734d1" "site/built/03-disk-image-manual.md" "2024-10-16" +"episodes/03-disk-image-manual.md" "392cf66513452997ebc6d2d7b74c313e" "site/built/03-disk-image-manual.md" "2024-10-16" "episodes/04-cluster.md" "2ec97ca6c4462252a864b9183737aa31" "site/built/04-cluster.md" "2024-10-16" "instructors/instructor-notes.md" "cae72b6712578d74a49fea7513099f8c" "site/built/instructor-notes.md" "2024-06-19" "learners/reference.md" "4352462746f1fb54a2fa54541baacd9c" "site/built/reference.md" "2024-10-14" diff --git a/pkgdown.yml b/pkgdown.yml index 0afaf79..558338c 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -2,4 +2,4 @@ pandoc: 3.1.11 pkgdown: 2.1.1 pkgdown_sha: ~ articles: {} -last_built: 2024-10-16T14:32Z +last_built: 2024-10-16T17:27Z