Skip to content

Commit

Permalink
fix: use alpine for init image
Browse files Browse the repository at this point in the history
  • Loading branch information
marnixdessing committed Aug 3, 2023
1 parent eb5c547 commit 3f0f150
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/constructs/EcsFargateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,11 @@ export class EcsFargateService extends Construct {
taskDef.addVolume({ name: VOLUME_NAME });

// The init container will change permissions on the volume
// See https://github.com/aws/containers-roadmap/issues/938
const initContainer = taskDef.addContainer('init-container', {
image: ecs.ContainerImage.fromRegistry('busybox:latest'),
image: ecs.ContainerImage.fromRegistry('alpine:latest'),
entryPoint: ['sh', '-c'],
command: ['sudo chmod 0777 /storage'],
command: ['chmod 0777 /storage'], // TODO check proper restriction
essential: false, // exit after running
});
initContainer.addMountPoints({
Expand Down

0 comments on commit 3f0f150

Please sign in to comment.