Skip to content

Commit 7c6c36d

Browse files
committed
Update deploy.
1 parent e5d2b8b commit 7c6c36d

File tree

5 files changed

+211
-0
lines changed

5 files changed

+211
-0
lines changed

Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM nginx
2+
EXPOSE 80
3+
COPY build/html/ /usr/share/nginx/html/

Makefile

+8
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ help:
3232
clean:
3333
-rm -rf $(BUILDDIR)/*
3434

35+
deploy:
36+
python3 -m venv --copies deploy
37+
source deploy/bin/activate
38+
pip install -r source/requirements.txt
39+
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
40+
@echo
41+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
42+
3543
html:
3644
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
3745
@echo

languages/letusc/.devcontainer.json

+125
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
{
2+
"extensions": [
3+
"/opt/cs50/extensions/cs50-0.0.1.vsix",
4+
"/opt/cs50/extensions/phpliteadmin-0.0.1.vsix",
5+
"/opt/cs50/extensions/workspace-layout-0.0.7.vsix",
6+
"cs50.ddb50",
7+
"cs50.extension-uninstaller",
8+
"ms-python.python",
9+
"ms-vscode.cpptools",
10+
"ms-vscode.hexeditor",
11+
"ms-vsliveshare.vsliveshare-pack",
12+
"tomoki1207.pdf",
13+
"vsls-contrib.gitdoc"
14+
],
15+
"image": "ghcr.io/cs50/codespace",
16+
"postCreateCommand": "/opt/cs50/bin/postCreateCommand",
17+
"settings": {
18+
"breadcrumbs.enabled": false,
19+
"C_Cpp.autocomplete": "Disabled",
20+
"C_Cpp.codeFolding": "Disabled",
21+
"C_Cpp.dimInactiveRegions": false,
22+
"C_Cpp.enhancedColorization": "Enabled",
23+
"C_Cpp.errorSquiggles": "Disabled",
24+
"editor.autoClosingQuotes": "never",
25+
"editor.colorDecorators": false,
26+
"editor.emptySelectionClipboard": false,
27+
"editor.folding": false,
28+
"editor.foldingHighlight": false,
29+
"editor.hover.enabled": false,
30+
"editor.lightbulb.enabled": false,
31+
"editor.matchBrackets": "near",
32+
"editor.minimap.enabled": false,
33+
"editor.occurrencesHighlight": false,
34+
"editor.parameterHints.enabled": false,
35+
"editor.quickSuggestions": false,
36+
"editor.renderIndentGuides": false,
37+
"editor.renderWhitespace": "selection",
38+
"editor.selectionHighlight": false,
39+
"editor.semanticTokenColorCustomizations": {
40+
"[Default Dark+]": {
41+
"enabled": true,
42+
"rules": {
43+
"type": "#569CD6"
44+
}
45+
},
46+
"[Default Light+]": {
47+
"enabled": true,
48+
"rules": {
49+
"type": "#0000FF"
50+
}
51+
}
52+
},
53+
"editor.suggestOnTriggerCharacters": false,
54+
"extensions.ignoreRecommendations": true,
55+
"extension-uninstaller.uninstall": [
56+
"github.copilot",
57+
"github.copilot-nightly",
58+
"tabnine.tabnine-vscode"
59+
],
60+
"files.autoSave": "afterDelay",
61+
"files.exclude": {
62+
"**/.*": true
63+
},
64+
"files.trimTrailingWhitespace": true,
65+
"files.watcherExclude": {
66+
"**/.git/objects/**": true,
67+
"**/.git/subtree-cache/**": true,
68+
"**/node_modules/*/**": true
69+
},
70+
"git.autofetch": true, /* Disable "Would you like Code to periodically run 'git fetch'?" toast */
71+
"git.decorations.enabled": false,
72+
"gitdoc.autoPull": "off",
73+
"gitdoc.enabled": true,
74+
"gitdoc.commitMessageFormat": "ddd, MMM D, YYYY, h:mm A Z",
75+
"gitdoc.commitValidationLevel": "none",
76+
"gitdoc.pullOnOpen": false,
77+
"html.suggest.html5": false,
78+
"javascript.suggest.enabled": false,
79+
"javascript.validate.enable": false, /* Disable red squiggles */
80+
"problems.decorations.enabled": false,
81+
"remote.otherPortsAttributes": {
82+
"onAutoForward": "silent"
83+
},
84+
"scm.countBadge": "off",
85+
"terminal.integrated.commandsToSkipShell": [
86+
"workbench.action.toggleSidebarVisibility"
87+
],
88+
"terminal.integrated.defaultProfile.linux": "bash",
89+
"terminal.integrated.profiles.linux": {
90+
"bash": {
91+
"args": [
92+
"-l"
93+
],
94+
"path": "bash"
95+
},
96+
"JavaScript Debug Terminal": null
97+
},
98+
"terminal.integrated.persistentSessionReviveProcess": "never",
99+
"terminal.integrated.sendKeybindingsToShell": true,
100+
"terminal.integrated.tabs.description": "${task}${separator}${local}", /* Remove cwdFolder from description */
101+
"terminal.integrated.tabs.showActiveTerminal": "never",
102+
"window.autoDetectColorScheme": true,
103+
"workbench.colorCustomizations": {
104+
"editor.lineHighlightBorder": "#0000", /* Disable gray border-{bottom,top} on active line */
105+
"editorError.foreground": "#0000", /* Disable red squiggles */
106+
"editorWarning.foreground": "#0000", /* Disable yellow squiggles */
107+
"editorGutter.addedBackground": "#0000",
108+
"editorGutter.deletedBackground": "#0000",
109+
"editorGutter.modifiedBackground": "#0000", /* Disable yellow bars to left of lines modified since last commit */
110+
"[GitHub Light Default]": {
111+
"terminal.foreground": "#000000" /* Change terminal font color to #000 for GitHub Light Default theme */
112+
}
113+
},
114+
"workbench.editor.closeOnFileDelete": true,
115+
"workbench.editor.untitled.hint": "hidden",
116+
"workbench.enableExperiments": false,
117+
"workbench.iconTheme": "vs-minimal", /* Simplify icons */
118+
"workbench.preferredDarkColorTheme": "Default Dark+",
119+
"workbench.preferredLightColorTheme": "Default Light+",
120+
"workbench.startupEditor": "none",
121+
"workbench.statusBar.visible": false,
122+
"workbench.tips.enabled": false,
123+
"workbench.welcomePage.walkthroughs.openOnInstall": false
124+
}
125+
}

learntosolveit.yaml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: learntosolveit
5+
---
6+
apiVersion: apps/v1
7+
kind: Deployment
8+
metadata:
9+
namespace: learntosolveit
10+
name: deployment-learntosolveit
11+
spec:
12+
selector:
13+
matchLabels:
14+
app.kubernetes.io/name: app-learntosolveit
15+
replicas: 5
16+
template:
17+
metadata:
18+
labels:
19+
app.kubernetes.io/name: app-learntosolveit
20+
spec:
21+
containers:
22+
- image: skumaran/learntosolveit:latest
23+
imagePullPolicy: Always
24+
name: app-learntosolveit
25+
ports:
26+
- containerPort: 80
27+
---
28+
apiVersion: v1
29+
kind: Service
30+
metadata:
31+
namespace: learntosolveit
32+
name: service-learntosolveit
33+
spec:
34+
ports:
35+
- port: 80
36+
targetPort: 80
37+
protocol: TCP
38+
type: NodePort
39+
selector:
40+
app.kubernetes.io/name: app-learntosolveit
41+
---
42+
apiVersion: networking.k8s.io/v1
43+
kind: Ingress
44+
metadata:
45+
namespace: learntosolveit
46+
name: ingress-learntosolveit
47+
annotations:
48+
alb.ingress.kubernetes.io/scheme: internet-facing
49+
alb.ingress.kubernetes.io/target-type: ip
50+
spec:
51+
ingressClassName: alb
52+
rules:
53+
- http:
54+
paths:
55+
- path: /
56+
pathType: Prefix
57+
backend:
58+
service:
59+
name: service-learntosolveit
60+
port:
61+
number: 80

pyproject.toml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[tool.poetry]
2+
name = "learntosolveit"
3+
version = "0.1.0"
4+
description = ""
5+
authors = ["Senthil Kumaran <[email protected]>"]
6+
readme = "README.md"
7+
8+
[tool.poetry.dependencies]
9+
python = "^3.9"
10+
11+
12+
[build-system]
13+
requires = ["poetry-core"]
14+
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)