This repository has been archived by the owner on Apr 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
94 lines (87 loc) · 3.35 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Makefile for steam docker containers.
STAGING_DIR = /tmp/steam-staging
D_DIR = Dockerfile
help:
@echo 'USAGE:'
@echo
@echo 'make stable'
@echo ' Build latest steam dedicated docker container.'
@echo
@echo 'make latest'
@echo ' Build latest steam dedicated docker with latest winehq STABLE updates container.'
@echo
@echo 'make experimental'
@echo ' Build latest steam dedicated docker with latest winehq STAGING updates container.'
@echo
@echo 'make all'
@echo ' Build all latest containers.'
.PHONY: help Makefile
all: stable latest experimental
stable: clean
@echo 'Building steam ubuntu container ...'
@mkdir -p $(STAGING_DIR)
@cp ${D_DIR}/BASE ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/LOCALE_BASE >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/WINE >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/WINE_TRICKS >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/INSTALL_STEAM >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/STEAM_SERVICE >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/SUPERVISORD >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/CLEANUP >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/WORKDIR >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/VOLUME >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/ENTRYPOINT >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/EXPOSE >> ${STAGING_DIR}/Dockerfile
@cp -R source $(STAGING_DIR)
@cd $(STAGING_DIR) && \
docker build \
-t rpufky/steam:stable \
.
@echo
@echo 'Remember to push to hub: docker push rpufky/steam:stable'
latest: clean
@echo 'Building steam ubuntu container using wine STABLE latest from winehq repo ...'
@mkdir -p $(STAGING_DIR)
@cp ${D_DIR}/BASE ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/LOCALE_BASE >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/WINEHQ_STABLE >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/WINE_TRICKS >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/INSTALL_STEAM >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/STEAM_SERVICE >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/SUPERVISORD >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/CLEANUP >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/WORKDIR >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/VOLUME >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/ENTRYPOINT >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/EXPOSE >> ${STAGING_DIR}/Dockerfile
@cp -R source $(STAGING_DIR)
@cd $(STAGING_DIR) && \
docker build \
-t rpufky/steam:latest -t rpufky/steam:winehq \
.
@echo
@echo 'Remember to push to hub: docker push rpufky/steam:latest'
experimental: clean
@echo 'Building steam ubuntu container using wine STAGING latest from winehq repo ...'
@mkdir -p $(STAGING_DIR)
@cp ${D_DIR}/BASE ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/LOCALE_BASE >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/WINEHQ_STAGING >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/WINE_TRICKS >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/INSTALL_STEAM >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/STEAM_SERVICE >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/SUPERVISORD >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/CLEANUP >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/WORKDIR >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/VOLUME >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/ENTRYPOINT >> ${STAGING_DIR}/Dockerfile
@cat ${D_DIR}/EXPOSE >> ${STAGING_DIR}/Dockerfile
@cp -R source $(STAGING_DIR)
@cd $(STAGING_DIR) && \
docker build \
-t rpufky/steam:experimental \
.
@echo
clean:
@echo 'Cleaning build files ...'
@rm -rfv $(STAGING_DIR)