fog-server
所属分类:嵌入式/单片机/硬件编程
开发工具:Shell
文件大小:0KB
下载次数:0
上传日期:2021-02-27 20:26:50
上 传 者:
sh-1993
说明: 用于arm64的fog服务器,
(fog-server for arm64,)
文件列表:
Dockerfile.txt (374, 2021-02-27)
How-to_Makefile.txt (132, 2021-02-27)
docker-entrypoint.sh.txt (820, 2021-02-27)
# fog-server
fog-server Docker image for arm64
## In the file [Dockerfile](https://github.com/RPTST/fog-server/blob/master/Dockerfile):
We are simply updating the server.
## In the file [docker-entrypoint.sh](https://github.com/RPTST/fog-server/blob/master/docker-entrypoint.sh):
If you want to change default port for the webserver:
Uncomment these lines
```sh
sh -c '/bin/sed -i "s/^Listen 80.*/Listen 8083/g" /etc/apache2/ports.conf'
sh -c '/bin/sed -i "s/Listen 443$/Listen 44383/g" /etc/apache2/ports.conf'
sh -c '/bin/sed -i "1s/.*//g" /etc/apache2/sites-enabled/000-default.conf'
sh -c '/bin/sed -i "1s/.*//g" /etc/apache2/sites-enabled/001-fog.conf'
sh -c '/bin/sed -i "s/192.168.2.3/192.168.2.3:8083/g" /tftpboot/default.ipxe'
```
else, leave these lines alone.
Change these lines with the approiate IP address:
```sh
sh -c '/bin/sed -i "6s/.*/CN = 192.168.2.3/g" /opt/fog/snapins/ssl/req.cnf'
sh -c '/bin/sed -i "10s/.*/DNS.1 = 192.168.2.3/g" /opt/fog/snapins/ssl/req.cnf'
sh -c '/bin/sed -i "4s/.*/DNS.1 = 192.168.2.3/g" /opt/fog/snapins/ssl/ca.cnf'
sh -c "/bin/sed -i '/HOST/ s/\".*\"/\"192.168.2.3\"/g' /var/www/fog/lib/fog/config.class.php"
```
else, leave these lines alone.
## network:
sudo docker network create -d macvlan --subnet=192.168.2.0/24 --gateway=192.168.2.1 -o parent=eth0 mynet
** Replace the subnet and gateway with the appropriate network information
## create:
sudo docker build --network mynet -t fog-server .
## run:
sudo docker run -d --network mynet -P fog-server
近期下载者:
相关文件:
收藏者: