Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add docker to user group & delete unnecessary lines #133

Merged
merged 3 commits into from
Aug 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions osect_sensor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ Docker CEをインストールします。

```bash
$ sudo apt install -y docker-ce
$ sudo docker container run --rm hello-world
$ sudo usermod -aG docker <username>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ユーザーグループにdockerを加える

$ docker container run --rm hello-world
```

docker-compose 1.27.4をインストールします。
Expand Down Expand Up @@ -168,8 +169,6 @@ DjangoのSECRET_KEYの設定を設定します。
```bash
$ SK=`cat /dev/urandom | base64 | fold -w 64 | head -n 1`; sed -i -e 's@SECRET_KEY = ""@SECRET_KEY = "'$SK'"@g' ~/osect_sensor/Application/edge_cron/edge_cron/settings.py
(何も表示されません。)
$ SK=`cat /dev/urandom | base64 | fold -w 64 | head -n 1`; sed -i -e 's@SECRET_KEY = ""@SECRET_KEY = "'$SK'"@g' ~/osect_sensor/Application/edge_tcpdump/sc_tcpdump/settings.py
(何も表示されません。)
Comment on lines -171 to -172
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

edge_tcpdumpの行を削除

```

### 3.3. データ送信用URLの設定
Expand Down Expand Up @@ -206,6 +205,6 @@ $ ~/osect_sensor/keys/client.pem

```bash
$ cd ~/osect_sensor/
$ sudo /usr/local/bin/docker-compose build
$ sudo /usr/local/bin/docker-compose up -d
$ /usr/local/bin/docker-compose build
$ /usr/local/bin/docker-compose up -d
Comment on lines +208 to +209
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sudo不要でビルドできるように変更

```