Files
Dmitrii Kuvaiskii 0a4d5ce0e5 [GSC] Refactor GSC and make it work again
Commit "Introduce one, central manifest, zero-config children and
constant MRENCLAVE" broke GSC. This commit fixes GSC (mainly adjusts
it the single-manifest change in that commit). Also, significant
internal refactoring is done (no user-visible changes). Also, scripts
now explicitly use UTF-8 when reading/writing the manifest files because
they are written in TOML which forces UTF-8.
2021-02-03 23:10:29 -08:00

35 lines
1.2 KiB
Makefile

# This makefile should be used to generate Dockerfiles for all prebuilt images. Prebuilt images are
# located in images/*. These files are then pulled by Docker Hub to generate the public Docker Hub
# images of Graphene and cannot be generated by Docker Hub, since it does not execute commands. When
# GSC changes substantially in its initial Graphene build (e.g. when
# templates/Dockerfile.*.compile.template changes), these automatically generated files need to be
# updated. Generally, changes to Graphene do not require rebuilding these Docker files.
IMAGES=graphene_aks
VERSIONS=latest
all: $(addsuffix .dockerfile, $(addprefix $(addprefix images/, ${IMAGES}), .${VERSIONS}))
config.aks.%.yaml:
printf \
"Distro: \"ubuntu18.04\"\n\
Graphene:\n\
Repository: \"https://github.com/oscarlab/graphene.git\"\n\
Branch: \"$*\"\n\
SGXDriver:\n\
Repository: \"https://github.com/intel/SGXDataCenterAttestationPrimitives.git\"\n\
Branch: \"DCAP_1.7 && cp -r driver/linux/* .\"\n" > $@
images/graphene_aks.latest.dockerfile: config.aks.master.yaml
./gsc build-graphene -f -c $< graphene-aks
mv build/gsc-graphene-aks/Dockerfile.compile $@
.PHONY: distclean
distclean: clean
$(RM) images/*
$(RM) -r build
.PHONY: clean
clean:
$(RM) config.aks.*.yaml