|
1 | | -# [namesmt/images-alpine](https://github.com/NamesMT/images-alpine) - [Dockerhub link](https://hub.docker.com/r/namesmt/images-alpine) |
2 | | - |
3 | | - |
4 | | - |
| 1 | +# [namesmt/linux-stuff](https://github.com/NamesMT/linux-stuff) - [Dockerhub link](https://hub.docker.com/r/namesmt/linux-stuff) |
| 2 | + |
| 3 | + |
| 4 | + |
5 | 5 |
|
6 | 6 | ### Features: |
7 | | -- Alpine 3.21 |
8 | | -- Latest Node LTS & pnpm (**node**) |
| 7 | +- Latest Node LTS & pnpm (**node** tag) |
9 | 8 | - [@antfu/ni](https://github.com/antfu/ni) |
10 | | -- Self-built latest aws-cli v2 (**aws**) |
11 | | -- git + Oh My Zsh! (**dev**) |
| 9 | +- Self-built latest aws-cli v2 (**aws** tag) |
| 10 | +- git + Oh My Zsh! (**dev** tag) |
12 | 11 | - Theme: [spaceship](https://spaceship-prompt.sh/) |
13 | 12 | - SPACESHIP_USER_SHOW=false |
14 | 13 | - SPACESHIP_DIR_TRUNC_REPO=false |
|
20 | 19 | - https://github.com/zsh-users/zsh-autosuggestions |
21 | 20 | - https://github.com/zsh-users/zsh-completions |
22 | 21 | - https://github.com/zsh-users/zsh-syntax-highlighting |
23 | | -- These common packages are also installed for all suffix/version: |
24 | | - - `gcompat` `libstdc++` `zip` `unzip` `jq` `sudo` `curl` `zsh` `bash` |
| 22 | +- These common packages are installed for all: |
| 23 | + - `zip` `unzip` `jq` `sudo` `curl` `zsh` `bash` |
| 24 | + - *alpine-only:* `gcompat` `libstdc++` |
25 | 25 |
|
26 | 26 | --- |
27 | 27 |
|
28 | 28 | ### Use: |
29 | | -Available on Docker registry: (auto-built on pnpm releases) |
| 29 | + |
| 30 | +*(new versions are auto-built on new pnpm releases for now, their release cycle is good anchor point for new images, as well as I like to micro-optimize my CI build time by using the exact pnpm version :D)* |
| 31 | + |
| 32 | +Available on Docker registry: |
30 | 33 | ```sh |
31 | | -docker run -it --rm namesmt/images-alpine:node-dev |
| 34 | +docker run -it --rm namesmt/linux-stuff:alpine-node-dev |
32 | 35 |
|
33 | 36 | # For CIs, you should pin the version: |
34 | | -docker run -it --rm namesmt/images-alpine:node-dev_pnpm8.10.5 |
| 37 | +docker run -it --rm namesmt/linux-stuff:node-dev_pnpm8.10.5 |
35 | 38 | ``` |
36 | 39 |
|
37 | 40 | #### WSL2 Alpine Quick Start: |
38 | 41 | Follow [Yuka](https://github.com/yuk7/AlpineWSL)'s instruction to install Alpine WSL2 |
39 | 42 |
|
40 | 43 | Setting up `node-dev` *([`fnm`](https://github.com/Schniz/fnm) included to manage node version)*: |
41 | 44 | ```sh |
42 | | -wget https://raw.githubusercontent.com/NamesMT/images-alpine/main/node-dev.sh -O- | bash |
| 45 | +wget https://raw.githubusercontent.com/NamesMT/linux-stuff/main/node-dev.sh -O- | bash |
43 | 46 | ``` |
44 | 47 |
|
45 | 48 | #### Additional scripts: |
46 | 49 | ##### Install [fnm](https://github.com/Schniz/fnm) - Fast Node Manager, similar to `nvm` |
47 | 50 | ```sh |
48 | | -wget https://raw.githubusercontent.com/NamesMT/images-alpine/main/scripts/install-fnm.sh -O- | sh |
| 51 | +wget https://raw.githubusercontent.com/NamesMT/linux-stuff/main/scripts/install-fnm.sh -O- | sh |
49 | 52 | ``` |
50 | 53 |
|
51 | 54 | ##### Install Docker |
52 | 55 | ```sh |
53 | | -wget https://raw.githubusercontent.com/NamesMT/images-alpine/main/scripts/install-docker.sh -O- | sh |
| 56 | +wget https://raw.githubusercontent.com/NamesMT/linux-stuff/main/scripts/install-docker.sh -O- | sh |
54 | 57 | ``` |
55 | 58 | You can call `sh ~/alpine.docker.service.sh` to start the docker service, |
56 | 59 | And call `sh ~/alpine.docker.service.sh stop` to stop the docker service. |
57 | 60 |
|
58 | 61 | ##### Install [sgerrand/alpine-pkg-glibc](https://github.com/sgerrand/alpine-pkg-glibc) |
59 | 62 | This package will help you in cases where an app requires glibc and `gcompat` doesn't work, like `Miniconda`, glibc `bun`. |
60 | 63 | ```sh |
61 | | -wget https://raw.githubusercontent.com/NamesMT/images-alpine/main/scripts/install-glibc.sh -O- | sh |
| 64 | +wget https://raw.githubusercontent.com/NamesMT/linux-stuff/main/scripts/install-glibc.sh -O- | sh |
62 | 65 | ``` |
63 | 66 |
|
64 | 67 | --- |
65 | 68 |
|
66 | 69 | ### Build: |
67 | 70 | ```sh |
68 | | -export imageName=namesmt/images-alpine |
| 71 | +export imageName=namesmt/linux-stuff |
69 | 72 | export imageTag= # node | node-dev | node-aws ... |
70 | 73 | docker build -f "${imageTag}.Dockerfile" -t "${imageName}:${imageTag}" "." |
71 | 74 | docker push "${imageName}:${imageTag}" |
72 | 75 | ``` |
73 | 76 |
|
74 | 77 | ## Roadmap |
75 | 78 | - [x] Github Actions to automate build |
76 | | - - builds will be automated with each pnpm release |
77 | 79 |
|
78 | 80 | ## Credits: |
79 | 81 | - [theidledeveloper/aws-cli-alpine](https://github.com/theidledeveloper/aws-cli-alpine): most of starting points |
0 commit comments