Skip to content

qipan2333/blog

 
 

Repository files navigation

GeekCity Blog

What's this?

develop with dev container and vscode

  • prepare mount point
    • mkdir -p $HOME/dev-container/blog/.gradle
  • open with vscode which contains .devcontainer

start locallly

  1. dev mode with gradlew
    • # you should kill the process by command `kill`
      # find the process with command `ps aux | grep vuepress`
      # Ctrl + C is just kills the gradle process, not the node process
      ./gradlew :docs:dev
  2. dev mode with docker
    • podman run --rm \
          -p 8080:8080 \
          -v $(pwd)/docs:/app \
          --workdir /app \
          -it docker.io/library/node:21.4.0-alpine sh -c 'npm install && npm run dev'
  3. build and host with container
    • podman build --ulimit nofile=4096:4096 -f docs/Dockerfile -t blog-docs .
      podman run --rm -p 8080:8080 -d localhost/blog-docs

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 59.4%
  • Shell 19.7%
  • Dockerfile 7.0%
  • C++ 6.9%
  • CMake 4.0%
  • Python 3.0%