Compare commits
14 Commits
86243e97b2
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
9f76492e76
|
|||
|
0e840c71d9
|
|||
|
3288c5148b
|
|||
|
57c3637ea7
|
|||
|
2c9b84f98b
|
|||
|
857750568e
|
|||
|
2d26e8a9ce
|
|||
|
e145bcd2c2
|
|||
|
d61e01f464
|
|||
|
121d2adbca
|
|||
|
572d4a6cbb
|
|||
|
c34800a9dc
|
|||
|
377bd72ee7
|
|||
|
a2b965755b
|
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"
|
||||||
|
|||||||
@@ -1,28 +1,41 @@
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 100vh;
|
min-height: 100vh;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
background-color: #f4f4f9;
|
background-color: #f4f4f9;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-container {
|
.main-container {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 2rem;
|
padding: 2rem 3rem;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
||||||
|
width: 100%;
|
||||||
|
max-width: 600px;
|
||||||
|
margin: 2rem 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.social-links a {
|
@media (max-width: 600px) {
|
||||||
color: #007bff;
|
body {
|
||||||
text-decoration: none;
|
align-items: flex-start;
|
||||||
margin: 0 0.5rem;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.social-links a:hover {
|
.main-container {
|
||||||
text-decoration: underline;
|
padding: 1.5rem 1rem;
|
||||||
|
margin: 0;
|
||||||
|
box-shadow: none;
|
||||||
|
border-radius: 0;
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 1.8rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -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=""
|
||||||
@@ -14,21 +14,22 @@
|
|||||||
[:h1 "Jaggar"]
|
[:h1 "Jaggar"]
|
||||||
[:p "Sometimes I do stuff. Fairly often really."]
|
[:p "Sometimes I do stuff. Fairly often really."]
|
||||||
[:p
|
[:p
|
||||||
"Actively a contributor to "
|
"Active contributor to "
|
||||||
[:a {:href "https://guix.gnu.org"} "Guix"]
|
[:a {:href "https://guix.gnu.org"} "Guix"]
|
||||||
" -as a package maintainer- and "
|
" -as a package maintainer- and "
|
||||||
[:a {:href "https://gthub.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 coops. 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, but I also think that 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