File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ ARG NODE_VERSION="none"
9
9
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1" ; fi
10
10
11
11
# [Optional] Uncomment this section to install additional OS packages.
12
- # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
13
- # && apt-get -y install --no-install-recommends <your-package-list-here>
12
+ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
13
+ && apt-get -y install --no-install-recommends python3-venv python3-pip
14
14
15
15
# [Optional] Uncomment this line to install global node packages.
16
16
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
Original file line number Diff line number Diff line change 13
13
}
14
14
},
15
15
16
+ // Features to add to the dev container. More info: https://containers.dev/features.
17
+ "features" : {
18
+ "ghcr.io/devcontainers/features/github-cli:1" : {}
19
+ },
20
+
16
21
// Use 'forwardPorts' to make a list of ports inside the container available locally.
17
22
"forwardPorts" : [
18
23
// Jekyll server
Original file line number Diff line number Diff line change @@ -36,10 +36,19 @@ install:
36
36
@bundle exec jekyll build
37
37
38
38
# Generate calendar.ics from events data
39
- calendar :
39
+ calendar : setup-python
40
40
@echo " Generating calendar.ics from events data..."
41
41
@./.venv/bin/python generate_calendar.py
42
42
@echo " Calendar generated successfully!"
43
43
44
- .PHONY : all serve serve-livereload serve-windows calendar
44
+ # Setup Python environment for calendar generation
45
+ setup-python :
46
+ @if [ ! -d " .venv" ]; then \
47
+ echo " Setting up Python environment..." ; \
48
+ python3 -m venv .venv --upgrade-deps; \
49
+ .venv/bin/pip install -r requirements.txt; \
50
+ echo " Python environment ready!" ; \
51
+ fi
52
+
53
+ .PHONY : all serve serve-livereload serve-windows calendar setup-python
45
54
You can’t perform that action at this time.
0 commit comments