Skip to content

Commit 9f5334b

Browse files
authored
Update README.md
Add introduction of pre-build image
1 parent 66b7a69 commit 9f5334b

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

README.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,35 @@ and make some change for raspberry Pi
55
I suggest enable the [zram](http://yulun.me/2015/enable-zram-for-raspberry-pi-debian/) to increase performance.
66

77
## Install Docker on Raspberry Pi
8-
```
8+
[official documents link](https://docs.docker.com/install/linux/docker-ce/debian/#install-using-the-convenience-script)
9+
```bash
910
curl -sSL https://get.docker.com | sh
1011
```
1112

12-
## Build Gitlab image:
13+
# Install & run container
14+
## Method 1 use pre-build image
15+
```bash
16+
sudo docker run --detach \
17+
--hostname IP \
18+
--publish 443:443 --publish 80:80 --publish 22:22 \
19+
--name gitlab \
20+
--restart always \
21+
--volume /srv/gitlab/config:/etc/gitlab \
22+
--volume /srv/gitlab/logs:/var/log/gitlab \
23+
--volume /srv/gitlab/data:/var/opt/gitlab \
24+
jubilee2/rpi-gitlab-ce:v11.10.4
25+
```
26+
27+
## Method 2 build image by your self
28+
### Build Gitlab image:
1329
```bash
1430
sudo apt-get install git
1531
git clone https://github.com/jubilee2/rpi-gitlab-ce.git
1632
cd rpi-gitlab-ce
1733
sudo docker build -t gitlab-ce .
1834
```
1935

20-
## Run Gitlab container:
36+
### Run Gitlab container:
2137
```bash
2238
sudo docker run --detach \
2339
--hostname IP \
@@ -30,4 +46,9 @@ sudo docker run --detach \
3046
gitlab-ce:latest
3147
```
3248

49+
# Experience
50+
It's need 20 min for first start up on my `raspberry PI 3 B+` with enable zram
51+
I observe this error occurred [link](https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/common_installation_problems/README.md#failed-to-modify-kernel-parameters-with-sysctl), but after several automatic restarts, the initialization was completed.
52+
53+
3354
[More Documents!](https://docs.gitlab.com/omnibus/docker/)

0 commit comments

Comments
 (0)