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 @@
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 @@
If they are not what you expect (in case you have many), change them with
@@ -441,7 +441,7 @@First list the billing accounts
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
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
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 @@ 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 @@
If they are not what you expect (in case you have many), change them with
@@ -673,7 +673,7 @@First list the billing accounts
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
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
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 @@
If they are not what you expect (in case you have many), change them with
@@ -443,7 +443,7 @@First list the billing accounts
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
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
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 @@ 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 @@
If they are not what you expect (in case you have many), change them with
@@ -677,7 +677,7 @@First list the billing accounts
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
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