Skip to content

Commit 148b1d3

Browse files
committed
chore(workflow): use podman replace docker
1 parent 621c603 commit 148b1d3

24 files changed

Lines changed: 88 additions & 147 deletions

.woodpecker/publish-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pipeline:
77
- name: build-docs
88
image: bash
99
commands:
10-
- make docker-build docker-build-docs
10+
- make podman-build podman-build-docs
1111
- cp _scripts/* _build/html
1212
- cd _build/html && echo "www.drycc.cc" > CNAME && echo "drycc.cc" >> CNAME && git init
1313
secrets:
@@ -22,7 +22,7 @@ pipeline:
2222
image: bash
2323
commands:
2424
- chown -R root:root _build/html
25-
- docker run --rm
25+
- podman run --rm
2626
-e DRONE_COMMIT_AUTHOR="$CI_COMMIT_AUTHOR"
2727
-e DRONE_COMMIT_AUTHOR_EMAIL="$CI_COMMIT_AUTHOR_EMAIL"
2828
-e PLUGIN_SSH_KEY="$SSH_DEPLOY_KEY"
@@ -34,7 +34,7 @@ pipeline:
3434
-e PLUGIN_COMMIT_MESSAGE="init repo"
3535
-v "$(pwd):$(pwd)"
3636
-w "$(pwd)"
37-
appleboy/drone-git-push
37+
docker.io/appleboy/drone-git-push
3838
secrets:
3939
- ssh_deploy_key
4040
when:

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ VERSION ?= git-$(shell git rev-parse --short HEAD)
1313
IMAGE := ${SHORT_NAME}:${VERSION}
1414
REPO_PATH := github.com/drycc/${SHORT_NAME}
1515
DEV_ENV_WORK_DIR := /src/${REPO_PATH}
16-
DEV_ENV_PREFIX := docker run --rm -v ${CURDIR}:${DEV_ENV_WORK_DIR} -w ${DEV_ENV_WORK_DIR} -p 8000:8000
16+
DEV_ENV_PREFIX := podman run --rm -v ${CURDIR}:${DEV_ENV_WORK_DIR} -w ${DEV_ENV_WORK_DIR} -p 8000:8000
1717
DEV_ENV_CMD := ${DEV_ENV_PREFIX} ${DEV_ENV_IMAGE}
1818

1919
BUILD_CMD := $(MKDOCSBUILD) --site-dir $(BUILDDIR) && \
@@ -39,17 +39,17 @@ deps:
3939
test: build
4040
$(TEST_CMD)
4141

42-
docker-build-docs:
42+
podman-build-docs:
4343
$(shell chown -R 1001:1001 ${CURDIR})
4444
$(DEV_ENV_CMD) ${IMAGE} $(BUILD_CMD)
4545

46-
docker-test: docker-build-docs
46+
podman-test: podman-build-docs
4747
${DEV_ENV_CMD} ${IMAGE} $(TEST_CMD)
4848

49-
docker-build:
50-
docker build ${DOCKER_BUILD_FLAGS} --build-arg CODENAME=${CODENAME} -t ${IMAGE} .
49+
podman-build:
50+
podman build --build-arg CODENAME=${CODENAME} -t ${IMAGE} .
5151

52-
docker-serve:
52+
podman-serve:
5353
${DEV_ENV_CMD} ${IMAGE} $(MKDOCSSERVE)
5454

55-
run: docker-build docker-serve
55+
run: podman-build podman-serve

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ Please see below for links and descriptions of each component:
1414
- [passport](https://github.com/drycc/passport) - Workflow single sign on system
1515
- [controller](https://github.com/drycc/controller) - Workflow API server
1616
- [builder](https://github.com/drycc/builder) - Git server and source-to-image component
17-
- [imagebuilder](https://github.com/drycc/imagebuilder) - The builder for [Docker](https://www.docker.com/) and [CNCF Buildpacks](https://buildpacks.io/) based applications
17+
- [imagebuilder](https://github.com/drycc/imagebuilder) - The builder for Container Image and [CNCF Buildpacks](https://buildpacks.io/) based applications
1818
- [fluentbit](https://github.com/drycc/fluentbit) - Backend log shipping mechanism for `drycc logs`
1919
- [postgres](https://github.com/drycc/postgres) - The central database
20-
- [registry](https://github.com/drycc/registry) - The Docker registry
20+
- [registry](https://github.com/drycc/registry) - The Container registry
2121
- [logger](https://github.com/drycc/logger) - The (in-memory) log buffer for `drycc logs`
2222
- [monitor](https://github.com/drycc/monitor) - The platform monitoring components
2323
- [prometheus](https://github.com/drycc/prometheus) - The monitor database
@@ -44,7 +44,7 @@ The Drycc project welcomes contributions from all developers. The high level pro
4444

4545
## Requirements
4646

47-
The documentation site requires either a local installation of [MkDocs][] or access to Docker.
47+
The documentation site requires either a local installation of [MkDocs][] or access to Container.
4848

4949
### Local Installation
5050

@@ -56,13 +56,13 @@ make deps
5656

5757
## Building Documentation
5858

59-
To build the documentation run: `make build` or `make docker-build`.
59+
To build the documentation run: `make build` or `make podman-build`.
6060

6161
## Serve Documentation Locally
6262

63-
To serve documenation run: `make serve` or `make docker-serve`.
63+
To serve documenation run: `make serve` or `make podman-serve`.
6464

65-
Then view the documentation on [http://localhost:8000](http://localhost:8000) or `http://DOCKER_IP:8000`.
65+
Then view the documentation on [http://localhost:8000](http://localhost:8000) or `http://PODMAN_IP:8000`.
6666

6767
[k8s-home]: http://kubernetes.io
6868
[install-k8s]: http://kubernetes.io/gettingstarted/

charts/workflow/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ global:
6262
#
6363
# Valid values are:
6464
# - on-cluster: Run registry within the Kubernetes cluster
65-
# - off-cluster: Use registry outside the Kubernetes cluster (example: dockerhub,quay.io,self-hosted)
65+
# - off-cluster: Use registry outside the Kubernetes cluster (example: drycc registry,self-hosted)
6666
registryLocation: "on-cluster"
6767
# Prefix for the imagepull secret created when using private registry
6868
registrySecretPrefix: "private-registry"

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ nav:
3030
- Deploying Apps: applications/deploying-apps.md
3131
- Buildpacks: applications/using-buildpacks.md
3232
- Dockerfiles: applications/using-dockerfiles.md
33-
- Docker Images: applications/using-docker-images.md
33+
- Container Images: applications/using-container-images.md
3434
- Managing App Processes: applications/managing-app-processes.md
3535
- Managing App Configuration: applications/managing-app-configuration.md
3636
- Managing App Lifecycle: applications/managing-app-lifecycle.md

src/applications/deploying-apps.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ An [Application][] is deployed to Drycc using `git push` or the `drycc` client.
44

55
## Supported Applications
66

7-
Drycc Workflow can deploy any application or service that can run inside a Docker container. In order to be scaled
7+
Drycc Workflow can deploy any application or service that can run inside a container. In order to be scaled
88
horizontally, applications must follow the [Twelve-Factor App][] methodology and store any application state in external
99
backing services.
1010

@@ -46,13 +46,13 @@ Dockerfiles are a powerful way to define a portable execution environment built
4646
Learn how to deploy applications [using Dockerfiles](../applications/using-dockerfiles.md).
4747

4848

49-
### Docker Image
49+
### Container Image
5050

51-
Deploying a Docker image onto Drycc allows you to take a Docker image from either a public
51+
Deploying a Container image onto Drycc allows you to take a Container image from either a public
5252
or a private registry and copy it over bit-for-bit, ensuring that you are running the same
5353
image in development or in your CI pipeline as you are in production.
5454

55-
Learn how to deploy applications [using Docker images](../applications/using-docker-images.md).
55+
Learn how to deploy applications [using Container images](../applications/using-container-images.md).
5656

5757
## Tuning Application Settings
5858

src/applications/managing-app-processes.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ Dockerfile's `CMD` directive unmodified:
2828
CMD python -m SimpleHTTPServer 5000
2929
EXPOSE 5000
3030

31-
For the above Dockerfile-based application, the `cmd` process type would run the Docker `CMD` of `python -m SimpleHTTPServer 5000`.
31+
For the above Dockerfile-based application, the `cmd` process type would run the Container `CMD` of `python -m SimpleHTTPServer 5000`.
3232

33-
Applications utilizing [remote Docker images][docker image], a `cmd` process type is also implied, and runs the `CMD`
34-
specified in the Docker image.
33+
Applications utilizing [remote Container images][container image], a `cmd` process type is also implied, and runs the `CMD`
34+
specified in the Container image.
3535

3636
!!! note
3737
The `web` and `cmd` process types are special as they’re the only process types that will
@@ -60,7 +60,7 @@ web: bundle exec ruby web.rb -p ${PORT:-5000}
6060
sleeper: sleep 900
6161
```
6262

63-
If you are using [remote Docker images][docker image], you may define process types by either running `drycc pull` with a
63+
If you are using [remote Container images][container image], you may define process types by either running `drycc pull` with a
6464
`Procfile` in your working directory, or by passing a stringified Procfile to the `--procfile` CLI option.
6565

6666
For example, passing process types inline:
@@ -152,7 +152,7 @@ scenic-icehouse-web-3291896318-background-yf8kh up (v2)
152152
```
153153

154154
!!! note
155-
The default process type for Dockerfile and Docker Image applications is 'cmd' rather than 'web'.
155+
The default process type for Dockerfile and Container Image applications is 'cmd' rather than 'web'.
156156

157157
Scaling a process down, by reducing the process count, sends a `TERM` signal to the processes, followed by a `SIGKILL`
158158
if they have not exited within 30 seconds. Depending on your application, scaling down may interrupt long-running HTTP
@@ -246,14 +246,14 @@ Scale up can only happen if there was no rescaling within the last 3 minutes. Sc
246246
## Web vs Cmd Process Types
247247

248248
When deploying to Drycc Workflow using a Heroku Buildpack, Workflow boots the `web` process type to
249-
boot the application server. When you deploy an application that has a Dockerfile or uses [Docker
250-
images][docker image], Workflow boots the `cmd` process type. Both act similarly in that
249+
boot the application server. When you deploy an application that has a Dockerfile or uses [Container
250+
images][container image], Workflow boots the `cmd` process type. Both act similarly in that
251251
they are exposed to the router as web applications. However, the `cmd` process type is special
252252
because, if left undefined, it is equivalent to running the [container][] without any additional
253-
arguments. (i.e. The process specified by the Dockerfile or Docker image's `CMD` directive will
253+
arguments. (i.e. The process specified by the Dockerfile or Container image's `CMD` directive will
254254
be used.)
255255

256-
If migrating an application from Heroku Buildpacks to a Docker-based deployment, Workflow will not
256+
If migrating an application from Heroku Buildpacks to a Container-based deployment, Workflow will not
257257
automatically convert the `web` process type to `cmd`. To do this, you'll have to manually scale
258258
down the old process type and scale the new process type up.
259259

@@ -287,6 +287,6 @@ the Pod to a new node.
287287
[process model]: https://devcenter.heroku.com/articles/process-model
288288
[buildpacks]: ../applications/using-buildpacks.md
289289
[dockerfile]: ../applications/using-dockerfiles.md
290-
[docker image]: ../applications/using-docker-images.md
290+
[container image]: ../applications/using-container-images.md
291291
[HPA]: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
292292
[autoscale-algo]: https://github.com/kubernetes/community/blob/master/contributors/design-proposals/horizontal-pod-autoscaler.md#autoscaling-algorithm

src/applications/using-buildpacks.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ Use `git push drycc master` to deploy your application.
5151
---> Waiting caddy running.
5252
---> Process caddy started.
5353
---> Building pack
54-
---> Using builder docker.io/drycc/buildpacks:20
55-
Builder 'docker.io/drycc/buildpacks:20' is trusted
56-
Pulling image 'index.docker.io/drycc/buildpacks:20'
54+
---> Using builder registry.drycc.cc/drycc/buildpacks:bookworm
55+
Builder 'registry.drycc.cc/drycc/buildpacks:bookworm' is trusted
56+
Pulling image 'registry.drycc.cc/drycc/buildpacks:bookworm'
5757
Resolving "drycc/buildpacks" using unqualified-search registries (/etc/containers/registries.conf)
58-
Trying to pull docker.io/drycc/buildpacks:20...
58+
Trying to pull registry.drycc.cc/drycc/buildpacks:bookworm...
5959
Getting image source signatures
6060
...
6161
---> Skip generate base layer
@@ -124,7 +124,7 @@ are pushing.
124124
To use a custom buildpack, you need create a `.pack_builder` file in your root path app.
125125

126126
$ tee > .pack_builder << EOF
127-
> docker.io/drycc/buildpacks:20
127+
> registry.drycc.cc/drycc/buildpacks:bookworm
128128
> EOF
129129

130130
On your next `git push`, the custom buildpack will be used.
@@ -144,7 +144,7 @@ key exists in your [GitHub settings][]. Then set `SSH_KEY` to the corresponding
144144
and set `.pack_builder` to the builder image:
145145

146146
$ tee > .pack_builder << EOF
147-
> docker.io/drycc/buildpacks:20
147+
> registry.drycc.cc/drycc/buildpacks:bookworm
148148
> EOF
149149
$ git add .buildpack
150150
$ git commit -m "chore(buildpack): modify the pack_builder"
File renamed without changes.

src/applications/using-dockerfiles.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Using Dockerfiles
22

3-
Drycc supports deploying applications via Dockerfiles. A [Dockerfile][] automates the steps for crafting a [Docker Image][].
3+
Drycc supports deploying applications via Dockerfiles. A [Dockerfile][] automates the steps for crafting a [Container Image][].
44
Dockerfiles are incredibly powerful but require some extra work to define your exact application runtime environment.
55

66
## Add SSH Key
@@ -34,7 +34,7 @@ In order to deploy Dockerfile applications, they must conform to the following r
3434
* The Dockerfile must use the `EXPOSE` directive to expose exactly one port.
3535
* That port must be listening for an HTTP connection.
3636
* The Dockerfile must use the `CMD` directive to define the default process that will run within the container.
37-
* The Docker image must contain [bash](https://www.gnu.org/software/bash/) to run processes.
37+
* The Container image must contain [bash](https://www.gnu.org/software/bash/) to run processes.
3838

3939
!!! note
4040
Note that if you are using a private registry of any kind (`gcr` or other) the application environment must include a `$PORT` config variable that matches the `EXPOSE`'d port, example: `drycc config:set PORT=5000`. See [Configuring Registry](../installing-workflow/configuring-registry/#configuring-off-cluster-private-registry) for more info.
@@ -123,10 +123,10 @@ process type directly changes the number of [containers][container]
123123
running that process.
124124

125125

126-
## Docker Build Arguments
126+
## Container Build Arguments
127127

128-
As of Workflow v2.13.0, users can inject their application config into the Docker image using
129-
[Docker build arguments][build-args]. To opt into this, users must add a new environment variable
128+
As of Workflow v2.13.0, users can inject their application config into the Container image using
129+
[Container build arguments][build-args]. To opt into this, users must add a new environment variable
130130
to their application:
131131

132132
```

0 commit comments

Comments
 (0)