Skip to content

Commit

Permalink
repo remove
Browse files Browse the repository at this point in the history
  • Loading branch information
Ujstor committed Sep 29, 2024
1 parent aeb134b commit ef85d81
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 57 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ main

.terra*
.auto.tf*
terraform.tfstate
terraform.tfstate.backup

bootstrap
function.zip
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22-alpine as base
FROM golang:1.22-alpine AS base

RUN apk add --no-cache make

Expand All @@ -9,15 +9,15 @@ RUN go mod download

COPY . .

FROM base as dev
FROM base AS dev
RUN make build
EXPOSE 5000
CMD [ "sh", "-c", "echo 'y' | make watch" ]

FROM base as build
FROM base AS build
RUN make build

FROM alpine:3.20.1 as prod
FROM alpine:3.20.1 AS prod
WORKDIR /app
COPY --from=build /app/main /app/main
EXPOSE 5000
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ watch:
exit 1; \
fi; \
fi

.PHONY: all build docker-build run docker-run push clean watch
Binary file removed cmd/web/assets/img/png/lambda.png
Binary file not shown.
Binary file removed cmd/web/assets/img/webp/lambda.webp
Binary file not shown.
69 changes: 19 additions & 50 deletions cmd/web/portfolio.templ
Original file line number Diff line number Diff line change
Expand Up @@ -67,37 +67,47 @@ templ Portfolio() {
<img
height="70"
width="70"
src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/docker/docker-original.svg"
src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/git/git-original.svg"
/>
<img
height="70"
width="70"
src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/kubernetes/kubernetes-plain.svg"
src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/gitlab/gitlab-original.svg"
/>
<img
height="70"
width="70"
src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/terraform/terraform-original.svg"
src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/github/github-original.svg"
/>
<img
height="70"
width="70"
src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/ansible/ansible-original.svg"
src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/githubactions/githubactions-original.svg"
/>
<img
height="70"
width="70"
src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/jenkins/jenkins-original.svg"
src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/docker/docker-original.svg"
/>
<img
height="70"
width="70"
src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/git/git-original.svg"
src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/kubernetes/kubernetes-plain.svg"
/>
<img
height="70"
width="70"
src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/githubactions/githubactions-original.svg"
src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/helm/helm-original.svg"
/>
<img
height="70"
width="70"
src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/terraform/terraform-original.svg"
/>
<img
height="70"
width="70"
src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/ansible/ansible-original.svg"
/>
<img
height="70"
Expand Down Expand Up @@ -302,50 +312,9 @@ templ Portfolio() {
</div>
</div>

<!-- User Project #5: aws-lambda -->
<!-- User Project #5: Self hosted Coolify -->
<div class="user-projects">
<div class="images-right">
<picture>
<source type="image/webp"
srcset="./assets/img/webp/lambda.webp"
sizes="(max-width: 600px) 480px, 800px" />
<img src="./assets/img/png/lambda.png"
alt="Lambda & DynamoDB TF Modules"
style="width:auto;max-width:100%;" />
</picture>
</div>
<div class="contents" style="text-align: center">
<h3>Lambda & DynamoDB TF Modules</h3>
<div>
<img
height="62"
width="62"
src="./assets/svg/lambda.svg"
/>
&nbsp;
<img
height="62"
width="62"
src="./assets/svg/apigw.svg"
/>
&nbsp;
<img
height="62"
width="62"
src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/dynamodb/dynamodb-original.svg"
/>
</div>
<p style="text-align: justify">
Terraform modules for creating Lambda functions along with associated AWS infrastructure components
like DynamoDB tables and API Gateway configurations.
</p>
<a class="project-link" target="_blank" href="https://github.com/Ujstor/aws-lambda-dynamoDB-terraform">GitHub</a>
</div>
</div>

<!-- User Project #6: Self hosted Coolify -->
<div class="user-projects">
<div class="images-left">
<picture>
<source type="image/webp"
srcset="./assets/img/webp/coolify.webp"
Expand All @@ -355,7 +324,7 @@ templ Portfolio() {
style="width:auto;max-width:100%;" />
</picture>
</div>
<div class="contents-right" style="text-align: center">
<div class="contents" style="text-align: center">
<h3>Coolify instance on Hetzner</h3>
<div>
<img
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-prod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
services:
web:
image: ujstor/portfolio-web-go:1.2.2
image: ujstor/portfolio-web-go:1.2.3
ports:
- 5000:5000
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- 5000:5000
volumes:
- ./:/app

web-prod:
build:
context: .
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module portfolio-web
go 1.22.0

require (
github.com/a-h/templ v0.2.731
github.com/a-h/templ v0.2.778
github.com/go-chi/chi/v5 v5.0.14
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
github.com/a-h/templ v0.2.731 h1:yiv4C7whSUsa36y65O06DPr/U/j3+WGB0RmvLOoVFXc=
github.com/a-h/templ v0.2.731/go.mod h1:IejA/ecDD0ul0dCvgCwp9t7bUZXVpGClEAdsqZQigi8=
github.com/a-h/templ v0.2.778 h1:VzhOuvWECrwOec4790lcLlZpP4Iptt5Q4K9aFxQmtaM=
github.com/a-h/templ v0.2.778/go.mod h1:lq48JXoUvuQrU0VThrK31yFwdRjTCnIE5bcPCM9IP1w=
github.com/go-chi/chi/v5 v5.0.14 h1:PyEwo2Vudraa0x/Wl6eDRRW2NXBvekgfxyydcM0WGE0=
github.com/go-chi/chi/v5 v5.0.14/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
Expand Down

0 comments on commit ef85d81

Please sign in to comment.