Skip to content

Commit

Permalink
Remove specific user which is needed to run container (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
henzigo authored Nov 25, 2024
1 parent 5b378a3 commit 979d5ca
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 12 deletions.
5 changes: 5 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
2. Run `composer update shopsys/deployment`
3. Check files in mentioned pull requests and if you have any of them extended in your project, apply changes manually

## Upgrade from v3.2.7 to v3.2.9

- Added routes to Nginx ([Commit](https://github.com/shopsys/deployment/commit/5b378a3ee1131fed8ac2821158f03f667db19dcb))
- `RunAsUser` was removed from Kubernetes manifests ([#30](https://github.com/shopsys/deployment/pull/30))

## Upgrade from v3.2.6 to v3.2.7

- upgraded PHP-FPM and Nginx configuration ([#29](https://github.com/shopsys/deployment/pull/29))
Expand Down
4 changes: 0 additions & 4 deletions kubernetes/deployments/webserver-php-fpm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ spec:
initContainers:
- name: copy-source-codes-to-volume
image: "{{TAG}}"
securityContext:
runAsUser: 33
command: ["sh", "-c", "cp -r -n /var/www/html/. /tmp/source-codes"]
volumeMounts:
- name: source-codes
Expand All @@ -83,8 +81,6 @@ spec:
containers:
- image: "{{TAG}}"
name: php-fpm
securityContext:
runAsUser: 33
imagePullPolicy: Always
workingDir: /var/www/html
lifecycle:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ spec:
- name: migrate-application
image: "{{TAG}}"
command: ["sh", "-c", "cd /var/www/html && ./phing -verbose db-migrations-count-with-maintenance build-deploy-part-2-db-dependent"]
securityContext:
runAsUser: 33
volumeMounts:
- name: domains-urls
mountPath: /var/www/html/{{DOMAINS_URLS_FILEPATH}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ spec:
friendly-urls-generate
domains-urls-replace
elasticsearch-export
securityContext:
runAsUser: 33
volumeMounts:
- name: domains-urls
mountPath: /var/www/html/{{DOMAINS_URLS_FILEPATH}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ spec:
- name: migrate-application
image: "{{TAG}}"
command: ["sh", "-c", "cd /var/www/html && ./phing cluster-first-deploy"]
securityContext:
runAsUser: 33
volumeMounts:
- name: domains-urls
mountPath: /var/www/html/{{DOMAINS_URLS_FILEPATH}}
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/manifest-templates/consumer.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ spec:
containers:
- image: "{{TAG}}"
name: consumer-{{NAME}}
securityContext:
runAsUser: 33
imagePullPolicy: Always
workingDir: /var/www/html
command:
Expand Down

0 comments on commit 979d5ca

Please sign in to comment.