mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-03 07:55:05 +00:00
First cut of swap image and example
Signed-off-by: Avi Deitcher <avi@deitcher.net> Fix spaces after commas Remove MAINTAINER Signed-off-by: Avi Deitcher <avi@deitcher.net> Simplify swap.yml example to remove files section Signed-off-by: Avi Deitcher <avi@deitcher.net> Switch swap.sh to sh from bash and remove bash from image Signed-off-by: Avi Deitcher <avi@deitcher.net> Replace fallocate with dd and update calculation function to support it Signed-off-by: Avi Deitcher <avi@deitcher.net> Fix indentation Signed-off-by: Avi Deitcher <avi@deitcher.net> Change link to swap to just swap.sh Signed-off-by: Avi Deitcher <avi@deitcher.net> Fix indent Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
13
pkg/swap/Dockerfile
Normal file
13
pkg/swap/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM alpine:3.5
|
||||
|
||||
# swap command - only minimal Alpine install
|
||||
|
||||
# use util-linux to get swapfile utils
|
||||
# at some point, hopefully use our own mkswap and swapon
|
||||
RUN apk add --update util-linux
|
||||
|
||||
# add the entrypoint and make it executable
|
||||
COPY . ./
|
||||
|
||||
# ENTRYPOINT
|
||||
ENTRYPOINT swap.sh
|
Reference in New Issue
Block a user