-
Notifications
You must be signed in to change notification settings - Fork 96
/
Containerfile
146 lines (113 loc) · 5.07 KB
/
Containerfile
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#This configuration item index document lists the configuration items for the following baseline:
#
#ProjectName: Pythonic
#Description: Pythonic (GUI) + PythonicDaemon (Backend)
#
# General purpose graphic programming tool.
# Graphical Python programming from within the browser,
# Python based backend running as container.
# Full multi-processing and multi-threading capable.
#
#
#CreationDate: 10.11.2021
#Creator: Stephan Avenwedde
#
#
#
#Type CIName Version License
# Pythonic
# INCLUDED PACKAGES
# IMG Fedora 31 GPL
# BIN Supervisor 3.2.0 Custom license
# BIN ms-python 2020.10.332292344
#
#Type CIName Name Version Commentary
#
#TC Container Image creation Podman 2.2.1
#TC 1. Test System (Linux) Podman 2.2.1
#
#
###################################################################################
# Type: #
# DOC Document #
# SC Source Code #
# BIN Binary Code #
# LIB Library #
# TC Tool Chain (development/test) #
###################################################################################
#
#
#
#
#
#
###################################################################################
# #
# BEGIN OF THE DOCKERFILE #
# #
###################################################################################
FROM fedora:31
ENV TERM=dumb
RUN dnf -y install pip
RUN dnf -y install bsdtar
RUN dnf -y install procps
###################################
# #
# Supervisor #
# #
###################################
RUN /usr/bin/python3 -m pip install --upgrade pip
RUN /usr/bin/python3 -m pip install supervisor==4.2.1
RUN /usr/bin/python3 -m pip install astroid==2.5.2
RUN /usr/bin/python3 -m pip install isort==5.8.0
RUN /usr/bin/python3 -m pip install lazy-object-proxy==1.6.0
RUN /usr/bin/python3 -m pip install toml==0.10.2
RUN /usr/bin/python3 -m pip install typed-ast==1.4.2
RUN /usr/bin/python3 -m pip install wrapt==1.12.1
RUN /usr/bin/python3 -m pip install pylint==2.7.4
###################################
# #
# Pythonic #
# #
###################################
COPY dist/Pythonic-1.11.tar.gz /
RUN /usr/bin/python3 -m pip install /Pythonic-1.11.tar.gz
RUN rm Pythonic-1.11.tar.gz
###################################
# #
# Code-Server #
# #
###################################
COPY src/code-server/code-server-3.8.0-amd64.rpm /
COPY src/code-server/ms-python-release.vsix /
COPY src/code-server/ms-python.vscode-pylance-2020.12.2.vsix /
RUN rpm -i /code-server-3.8.0-amd64.rpm
WORKDIR "/root/extension"
RUN bsdtar -xvf ../../ms-python-release.vsix
RUN mv extension ms-python.python-vscode-2.0.3
RUN bsdtar -xvf ../../ms-python.vscode-pylance-2020.12.2.vsix
RUN mv extension ms-python.vscode-pylance-2020.12.2
RUN rm \[Content_Types\].xml
RUN rm extension.vsixmanifest
#RUN mv extension /root/.code-server/extensions/ms-python.python-vscode-2.0.3
WORKDIR "/"
#RUN code-server --install-extension /ms-python-release.vsix
#RUN code-server --install-extension /ms-python.vscode-pylance-2020.12.2.vsix
#TODO https://github.com/cdr/code-server/issues/171
#code-server --extensions-dir /home/stephan/.vscode-oss/extensions/ /home/stephan/Pythonic/executables/
#RUN rm /code-server-3.8.0-amd64.rpm
#RUN rm /ms-python-release.vsix
#RUN rm /ms-python.vscode-pylance-2020.12.2.vsix
# TODO https://github.com/cdr/code-server/issues/2341
# Hier 2020.10 installieren
# code-server --install-extension ms-toolsai.jupyter-2020.12.414227025.vsix || true \
###################################
# #
# Configuration Files #
# #
###################################
COPY src/code-server/settings.json /root/.local/share/code-server/
COPY src/code-server/config.yaml /root/.config/code-server/
COPY src/supervisor/supervisord.conf /etc/supervisord.conf
ENTRYPOINT ["/usr/local/bin/supervisord", "-c", "/etc/supervisord.conf"]
WORKDIR /root