Compare commits
10 Commits
572d4a6cbb
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
9f76492e76
|
|||
|
0e840c71d9
|
|||
|
3288c5148b
|
|||
|
57c3637ea7
|
|||
|
2c9b84f98b
|
|||
|
857750568e
|
|||
|
2d26e8a9ce
|
|||
|
e145bcd2c2
|
|||
|
d61e01f464
|
|||
|
121d2adbca
|
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
FROM node:18-bullseye AS builder
|
||||||
|
RUN apt-get update && apt-get install -y default-jre
|
||||||
|
WORKDIR /app
|
||||||
|
COPY package.json package-lock.json shadow-cljs.edn ./
|
||||||
|
RUN npm install
|
||||||
|
COPY src ./src
|
||||||
|
COPY public ./public
|
||||||
|
RUN npx shadow-cljs release :app
|
||||||
|
|
||||||
|
|
||||||
|
FROM nginx:alpine
|
||||||
|
COPY --from=builder /app/public /usr/share/nginx/html
|
||||||
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
EXPOSE 80
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
22
README.md
Normal file
22
README.md
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
Simple README
|
||||||
|
|
||||||
|
Just use Docker to build and to run for ease:
|
||||||
|
Build:
|
||||||
|
```
|
||||||
|
docker build -t gigiaj/mesite .
|
||||||
|
```
|
||||||
|
Run:
|
||||||
|
```
|
||||||
|
docker run -p 8084:80 gigiaj/mesite
|
||||||
|
```
|
||||||
|
|
||||||
|
Can access in browser now at:
|
||||||
|
```
|
||||||
|
localhost:8084
|
||||||
|
```
|
||||||
|
|
||||||
|
deploy to docker repo
|
||||||
|
```
|
||||||
|
echo "$DOCKERHUB_PAT" | docker login --username gigiaj --password-stdin
|
||||||
|
docker push gigiaj/mesite:latest
|
||||||
|
```
|
||||||
11
nginx.conf
Normal file
11
nginx.conf
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,7 @@
|
|||||||
{
|
{
|
||||||
|
"scripts": {
|
||||||
|
"release": "npx shadow-cljs release app"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react": "^18.0.0",
|
"react": "^18.0.0",
|
||||||
"react-dom": "^18.0.0"
|
"react-dom": "^18.0.0"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Your Name's Personal Site</title>
|
<title>Jaggar</title>
|
||||||
<link href="/css/style.css" rel="stylesheet" type="text/css" />
|
<link href="/css/style.css" rel="stylesheet" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
1
sample.env
Normal file
1
sample.env
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export DOCKERHUB_PAT=""
|
||||||
@@ -19,16 +19,17 @@
|
|||||||
" -as a package maintainer- and "
|
" -as a package maintainer- and "
|
||||||
[:a {:href "https://github.com/GigiaJ/cinny"} "Cinny (Matrix client)"]
|
[:a {:href "https://github.com/GigiaJ/cinny"} "Cinny (Matrix client)"]
|
||||||
"."]
|
"."]
|
||||||
[:p "Software engineer (and more) at Ocean Spray Cranberries. I adore farmer-owned co-ops; Companies shouldn't be driven to improve stock prices."]
|
[:p "Software engineer (and more) at Ocean Spray Cranberries. I adore farmer-owned co-ops; companies shouldn't be driven to improve stock prices."]
|
||||||
[:p "Large proponent for free open source software, however I believe users should not be directly bridled from choices that are unequivocally pro-sumer."]
|
[:p "Large proponent for free open source software, however I believe users should not be directly bridled from choices that are unequivocally pro-sumer."]
|
||||||
[:br]
|
[:br]
|
||||||
[:br]
|
[:br]
|
||||||
[:br]
|
[:br]
|
||||||
[:h2 "Some of the other stuff"]
|
[:h2 "Some of the other stuff"]
|
||||||
[:p "Creator of " [:a {:href "https://github.com/OSRSB/OsrsBot"} "OSRSB"] " a botting API for Old School RuneScape."]
|
[:p "Creator of " [:a {:href "https://github.com/OSRSB/OsrsBot"} "OSRSB"] " a botting API for Old School RuneScape."]
|
||||||
[:p [:a {:href "https://github.com/GigiaJ/Renny"} "Infrequent" ] " software reverse engineer for games."]
|
[:p [:a {:href "https://github.com/GigiaJ/Renny"} "Infrequent" ] " software reverse engineer for games. Zig soon though."]
|
||||||
[:p [:a {:href "https://github.com/GigiaJ/dotfiles/tree/master/guix/.config/guix"} "My Guix home configuration"] " if you want your Guix config just like mine for some reason. (It's an alright reference I guess)."]
|
[:p [:a {:href "https://github.com/GigiaJ/dotfiles/tree/master/guix/.config/guix"} "My Guix home configuration"] " if you want your Guix config just like mine for some reason. (It's an alright reference I guess)."]
|
||||||
[:p [:a {:href "https://github.com/GigiaJ/dotfiles/tree/master/iac"} "My Pulumi IaC"] " for an unmanaged K8 cluster with hcloud."]
|
[:p [:a {:href "https://github.com/GigiaJ/iac-cljs-configs"} "My Clojurescript Pulumi IaC configs"] " for an unmanaged K8 cluster on hcloud that defines a reproducible infrastructure in which my services are defined and can live."]
|
||||||
|
[:p [:a {:href "https://github.com/GigiaJ/pulumi-clojurescript"} "pulumi-cljs"] " a library I wrote for creating extremely dynamic IaC with Clojurescript. Goes well with my Guix configs."]
|
||||||
[:p [:a {:href "https://codeberg.org/Gigia/gunit"} "My Guix channel"] " where I have some packages that aren't upstreamed."]
|
[:p [:a {:href "https://codeberg.org/Gigia/gunit"} "My Guix channel"] " where I have some packages that aren't upstreamed."]
|
||||||
[:br]
|
[:br]
|
||||||
[:br]
|
[:br]
|
||||||
|
|||||||
Reference in New Issue
Block a user