start migration gitea to forgejo
This commit is contained in:
1 parent
c553a2573e
commit
e6acd3ff8c
5 files changed
+42
-5
No files matched your search
@@ -1,6 +1,15 @@
|
||||
FROM debian:13
|
||||
|
||||
RUN apt update &&\
|
||||
ARG USERNAME=dev
|
||||
ARG USER_UID=1000
|
||||
ARG USER_GID=1000
|
||||
|
||||
RUN groupadd --gid ${USER_GID:-1000} $USERNAME \
|
||||
&& useradd --uid ${USER_UID:-1000} --gid ${USER_GID:-1000} -m $USERNAME
|
||||
|
||||
RUN apt update &&\
|
||||
apt install ca-certificates curl git -y &&\
|
||||
curl -fsSL https://get.docker.com -o get-docker.sh &&\
|
||||
sh get-docker.sh
|
||||
|
||||
USER $USERNAME
|
||||
@@ -1,11 +1,20 @@
|
||||
{
|
||||
"workspaceFolder": "/workspace",
|
||||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,Z",
|
||||
"remoteUser": "dev",
|
||||
"mounts": [
|
||||
"source=${localEnv:HOME}/.ssh,target=/root/.ssh,type=bind,readonly"
|
||||
"source=${localEnv:HOME}/.ssh,target=/root/.ssh,type=bind,readonly"
|
||||
],
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile"
|
||||
"dockerfile": "Dockerfile",
|
||||
"args": {
|
||||
"USERNAME": "dev",
|
||||
"USER_UID": "${localEnv:UID}",
|
||||
"USER_GID": "${localEnv:GID}"
|
||||
},
|
||||
},
|
||||
"containerEnv": {
|
||||
"SHELL": "/bin/bash"
|
||||
},
|
||||
"postCreateCommand": "docker context create prod --docker \"host=ssh://user@62.210.212.10\""
|
||||
}
|
||||
Reference in new issue
Block a user