Browse Source

Use podman instead of docker

Joshua Gleitze 6 months ago
parent
commit
e84ad6768d
2 changed files with 7 additions and 7 deletions
  1. 2 2
      README.md
  2. 5 5
      gulpfile.js

+ 2 - 2
README.md

@@ -51,10 +51,10 @@ The page is automatically rebuilt and reloaded in the browser as you make change
 
 To check the source files against the coding conventions, run `gulp check` from the project folder.
 
-In order to upload the site to the production server, you need to have [`docker`](https://docs.docker.com/install/) and [`kubectl`](https://kubernetes.io/docs/tasks/tools/install-kubectl/) installed.
+In order to upload the site to the production server, you need to have [`podman`](https://podman.io/getting-started/installation) and [`kubectl`](https://kubernetes.io/docs/tasks/tools/install-kubectl/) installed.
 Additionally, you have to ask Joshua Gleitze (mail@joshuagleitze.de) for credentials.
 After that, you can upload the page by running `gulp deploy --dversion <version>` from the project folder.
-The command will produce a release build, build a docker image with it, and deploy a container using the image.
+The command will produce a release build, build a container image with it, and deploy a container using the image.
 Replace `<version>` in the command with the new deployment version.
 Please pick the new deployment version according to [Semantic Versioning](https://semver.org/) rules.
 You can query the currently deployed version by running:

+ 5 - 5
gulpfile.js

@@ -238,11 +238,11 @@ function checkVersion() {
 }
 
 gulp.task('buildDocker',
-	run(`sudo docker build . -t ${imageName()}`)
-)
+	run(`podman build . -t ${imageName()}`)
+);
 gulp.task('pushDocker',
-	run(`sudo docker push ${imageName()}`)
-)
+	run(`podman push ${imageName()}`)
+);
 gulp.task('deployKubernetes',
 	run(`bash -c "` + (
 		`cat deployment.yaml`
@@ -253,7 +253,7 @@ gulp.task('deployKubernetes',
 				DEPLOYMENT_VERSION: getVersion()
 			}
 		})
-)
+);
 
 gulp.task('clean', cleanbuilddir);
 gulp.task('build', gulp.parallel(style, content, graphics, images, miscstatic));