adjusted devcontainer to improve performance on linux / wsl because binding windows fs was quite unusable as performance was really bad

This commit is contained in:
Jean Jacques Avril 2024-12-31 13:37:01 +00:00
parent b0a015eb61
commit 31ab45c9ab
No known key found for this signature in database
110 changed files with 30 additions and 28 deletions

0
.devcontainer/Dockerfile Normal file → Executable file
View File

4
.devcontainer/devcontainer.json Normal file → Executable file
View File

@ -28,9 +28,11 @@
"postCreateCommand": "./.devcontainer/setup.sh",
"remoteUser": "vscode",
"updateRemoteUserUID": true,
//"workspaceMount": "",
//"workspaceFolder": "/workspaces",
"mounts": [
"type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock",
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached"
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.ssh,target=/home/vscode/.ssh-host,type=bind,consistency=cached"
//"source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached"
]
}

41
.devcontainer/setup.sh Normal file → Executable file
View File

@ -3,33 +3,44 @@
# Frontend setup
if [ -d "frontend-react" ]; then
echo "Setting up frontend-react..."
cd frontend-react
#npm install
deno install --allow-scripts
cd ..
(
cd frontend-react
# npm install
deno install --allow-scripts
) &
else
echo "frontend-react directory not found, skipping..."
fi
# Dart backend setup
if [ -d "backend_dart" ]; then
echo "Setting up backend_dart..."
cd backend_dart
dart pub get
cd ..
if [ -d "backend-dart" ]; then
echo "Setting up backend-dart..."
(
cd backend-dart
dart pub get
) &
else
echo "backend_dart directory not found, skipping..."
echo "backend-dart directory not found, skipping..."
fi
# Go backend setup
if [ -d "backend-go" ]; then
echo "Setting up backend-go..."
cd backend-go
go mod tidy
cd ..
(
cd backend-go
go mod tidy
) &
else
echo "backend-go directory not found, skipping..."
fi
sudo chmod 600 /home/vscode/.ssh/* && sudo chown $USER:$USER /home/vscode/.ssh/*
#git config --global user.name 'Jean Avril' && git config --global user.email 'jean@jeanavril.com'
# Wait for all parallel processes to finish
wait
echo "Copying ssh keys"
sudo bash -c "rsync -a /home/$USER/.ssh-host/* /home/$USER/.ssh/"
echo "Setting permissions on ssh keys"
sudo chmod 600 /home/$USER/.ssh/* && sudo chown $USER:$USER /home/$USER/.ssh/*
# git config --global user.name 'Jean Avril' && git config --global user.email 'jean@jeanavril.com'
echo "Setup completed!"

0
.env Normal file → Executable file
View File

0
.gitignore vendored Normal file → Executable file
View File

0
.vscode/settings.json vendored Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
_common/db_client/.env Normal file → Executable file
View File

0
_common/db_client/.gitignore vendored Normal file → Executable file
View File

0
_common/db_client/CHANGELOG.md Normal file → Executable file
View File

0
_common/db_client/README.md Normal file → Executable file
View File

0
_common/db_client/analysis_options.yaml Normal file → Executable file
View File

0
_common/db_client/go.mod Normal file → Executable file
View File

0
_common/db_client/go.sum Normal file → Executable file
View File

0
_common/db_client/lib/db_client.dart Normal file → Executable file
View File

0
_common/db_client/package.json Normal file → Executable file
View File

0
_common/db_client/pnpm-lock.yaml generated Normal file → Executable file
View File

0
_common/db_client/prisma/prisma-query-engine Normal file → Executable file
View File

0
_common/db_client/prisma/schema.prisma Normal file → Executable file
View File

0
_common/db_client/pubspec.lock Normal file → Executable file
View File

0
_common/db_client/pubspec.yaml Normal file → Executable file
View File

0
_common/db_client/test/db_client_test.dart Normal file → Executable file
View File

0
_common/docker/redis.conf Normal file → Executable file
View File

0
_common/protobufs/gRPC.proto Normal file → Executable file
View File

0
backend-dart/.gitignore vendored Normal file → Executable file
View File

0
backend-dart/README.md Normal file → Executable file
View File

0
backend-dart/analysis_options.yaml Normal file → Executable file
View File

0
backend-dart/config.yaml Normal file → Executable file
View File

View File

0
backend-dart/lib/backend_dart.dart Normal file → Executable file
View File

0
backend-dart/lib/domain/entities/user.dart Normal file → Executable file
View File

View File

0
backend-dart/lib/infrastructure/config/config.dart Normal file → Executable file
View File

View File

View File

View File

0
backend-dart/lib/interfaces/http/server.dart Normal file → Executable file
View File

0
backend-dart/pubspec.lock Normal file → Executable file
View File

0
backend-dart/pubspec.yaml Normal file → Executable file
View File

0
backend-dart/test/backend_dart_test.dart Normal file → Executable file
View File

0
backend-go/cmd/actatempus/main.go Normal file → Executable file
View File

0
backend-go/config.yaml Normal file → Executable file
View File

7
backend-go/go.mod Normal file → Executable file
View File

@ -2,12 +2,7 @@ module actatempus_backend
go 1.23.2
require (
github.com/joho/godotenv v1.5.1
github.com/shopspring/decimal v1.4.0
github.com/spf13/viper v1.19.0
github.com/steebchen/prisma-client-go v0.43.0
)
require github.com/spf13/viper v1.19.0
require (
github.com/fsnotify/fsnotify v1.7.0 // indirect

6
backend-go/go.sum Normal file → Executable file
View File

@ -10,8 +10,6 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
@ -31,8 +29,6 @@ github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6ke
github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4=
github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE=
github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ=
github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k=
github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=
github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo=
github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0=
github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8=
@ -43,8 +39,6 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/viper v1.19.0 h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI=
github.com/spf13/viper v1.19.0/go.mod h1:GQUN9bilAbhU/jgc1bKs99f/suXKeUMct8Adx5+Ntkg=
github.com/steebchen/prisma-client-go v0.43.0 h1:B4ImvlGo2YXlkSbxjSyin/9Uy3vkhneuKir4K7vXd/A=
github.com/steebchen/prisma-client-go v0.43.0/go.mod h1:wp2xU9HO5WIefc65vcl1HOiFUzaHKyOhHw5atrzs8hc=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=

View File

0
backend-go/internal/domain/entities/user.go Normal file → Executable file
View File

View File

View File

0
backend-go/internal/infrastructure/persistence/db/.gitignore vendored Normal file → Executable file
View File

0
backend-go/internal/interfaces/http/server.go Normal file → Executable file
View File

0
docker-compose.yml Normal file → Executable file
View File

0
docs/KP_Spec-2.pdf Normal file → Executable file
View File

0
docs/KP_Spec-3.pdf Normal file → Executable file
View File

0
docs/concept.md Normal file → Executable file
View File

0
docs/presentation/Zwichenpräsentation.pdf Normal file → Executable file
View File

0
docs/presentation/Zwichenpräsentation.pptx Normal file → Executable file
View File

0
docs/presentation/fp_dart-demo/.gitignore vendored Normal file → Executable file
View File

0
docs/presentation/fp_dart-demo/CHANGELOG.md Normal file → Executable file
View File

0
docs/presentation/fp_dart-demo/README.md Normal file → Executable file
View File

0
docs/presentation/fp_dart-demo/analysis_options.yaml Normal file → Executable file
View File

0
docs/presentation/fp_dart-demo/lib/app_error.dart Normal file → Executable file
View File

0
docs/presentation/fp_dart-demo/lib/demo.dart Normal file → Executable file
View File

0
docs/presentation/fp_dart-demo/pubspec.lock Normal file → Executable file
View File

0
docs/presentation/fp_dart-demo/pubspec.yaml Normal file → Executable file
View File

0
docs/presentation/fp_dart-demo/test/demo_test.dart Normal file → Executable file
View File

0
frontend-react/.eslintrc.json Normal file → Executable file
View File

0
frontend-react/.gitignore vendored Normal file → Executable file
View File

0
frontend-react/README.md Normal file → Executable file
View File

0
frontend-react/deno.lock generated Normal file → Executable file
View File

0
frontend-react/messages/de.json Normal file → Executable file
View File

0
frontend-react/messages/en.json Normal file → Executable file
View File

0
frontend-react/next.config.ts Normal file → Executable file
View File

0
frontend-react/package-lock.json generated Normal file → Executable file
View File

0
frontend-react/package.json Normal file → Executable file
View File

0
frontend-react/postcss.config.mjs Normal file → Executable file
View File

0
frontend-react/public/file.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 391 B

After

Width:  |  Height:  |  Size: 391 B

0
frontend-react/public/globe.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

0
frontend-react/public/window.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 385 B

After

Width:  |  Height:  |  Size: 385 B

0
frontend-react/src/app/[locale]/(auth)/layout.tsx Normal file → Executable file
View File

View File

0
frontend-react/src/app/[locale]/(auth)/login/page.tsx Normal file → Executable file
View File

0
frontend-react/src/app/[locale]/(landing)/layout.tsx Normal file → Executable file
View File

0
frontend-react/src/app/[locale]/(landing)/page.tsx Normal file → Executable file
View File

0
frontend-react/src/app/layout.tsx Normal file → Executable file
View File

0
frontend-react/src/app/not-found.tsx Normal file → Executable file
View File

0
frontend-react/src/app/page.tsx Normal file → Executable file
View File

0
frontend-react/src/components/ErrorPages/404.tsx Normal file → Executable file
View File

View File

View File

View File

View File

0
frontend-react/src/components/Layout/BaseLayout.tsx Normal file → Executable file
View File

0
frontend-react/src/components/Layout/Header/Header.tsx Normal file → Executable file
View File

View File

View File

View File

View File

Some files were not shown because too many files have changed in this diff Show More