Skip to content

Commit

Permalink
Revert "mount off /images volume"
Browse files Browse the repository at this point in the history
This reverts commit f274da9.
  • Loading branch information
Luke Lombardi committed Mar 25, 2024
1 parent 15102a6 commit a9824ac
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions internal/worker/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (
const (
imagePullCommand string = "skopeo"
imageCachePath string = "/dev/shm/images"
imageMountPath string = "/dev/shm/images/mount"
imageAvailableFilename string = "IMAGE_AVAILABLE"
imageMountLockFilename string = "IMAGE_MOUNT_LOCK"
)
Expand Down Expand Up @@ -89,11 +88,6 @@ func NewImageClient(config types.ImageServiceConfig, workerId string, workerRepo
return nil, err
}

err = os.MkdirAll(imageMountPath, os.ModePerm)
if err != nil {
return nil, err
}

// TODO: refactor credentials logic for base image registries
// Right now, the aws credential provider is not actually being used
// because the base image is stored in a public registry
Expand Down Expand Up @@ -131,7 +125,7 @@ func (c *ImageClient) PullLazy(imageId string) error {

var mountOptions *clip.MountOptions = &clip.MountOptions{
ArchivePath: remoteArchivePath,
MountPoint: fmt.Sprintf("%s/%s", imageMountPath, imageId),
MountPoint: fmt.Sprintf("%s/%s", imagePath, imageId),
Verbose: false,
CachePath: localCachePath,
ContentCache: c.cacheClient,
Expand Down

0 comments on commit a9824ac

Please sign in to comment.