Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
projet-ter-m1-wic-openwrt
luci
Commits
dd591f14
Commit
dd591f14
authored
Jun 09, 2020
by
Zhao ZHANG
Browse files
Adding simple docker container support
parent
219f0ce8
Changes
3
Hide whitespace changes
Inline
Side-by-side
.env
0 → 100644
View file @
dd591f14
### Configuration Docker Environement
# Locally mapped port, accessed via http://localhost:port
HTTP_PORT=8043
# Locally mapped port, accessed via sftp: sftp -P2200 root@127.0.0.1
SFTP_PORT=2200
# Point to your temporary directory
WORKSPACE_TEMP_DIR=./temp/
\ No newline at end of file
docker-compose.yml
0 → 100644
View file @
dd591f14
version
:
'
2'
services
:
### Docker Theme Container #######################################
theme
:
build
:
context
:
./docker
dockerfile
:
Dockerfile
volumes
:
-
${WORKSPACE_TEMP_DIR}:/tmp/
ports
:
-
"
${HTTP_PORT}:80"
-
"
${SFTP_PORT}:22"
### Volumes Setup ###########################################
volumes
:
theme
:
driver
:
"
local"
\ No newline at end of file
docker/Dockerfile
0 → 100644
View file @
dd591f14
FROM
openwrtorg/rootfs:x86-64
MAINTAINER
Zhao ZHANG <zo.zhang@gmail.com>
USER
root
RUN
mkdir
/var/lock
&&
\
opkg update
&&
\
opkg
install
uhttpd luci-base luci-mod-admin-full luci-theme-bootstrap luci-i18n-base-en luci-i18n-firewall-en luci-i18n-base-fr luci-i18n-firewall-fr openssh-sftp-server
&&
\
uci
set
luci.ccache.enable
=
0
&&
\
uci commit luci
RUN mkdir -p /deployment && \
ln -s /usr/lib/lua/luci /deployment/luci-lua && \
ln -s /usr/lib/lua/luci/view/ /deployment/luci-view && \
ln -s /usr/share/rpcd/acl.d/ /deployment/acl.d && \
ln -s /usr/share/luci/menu.d/ /deployment/menu.d && \
ln -s /www/luci-static/resources/ /deployment/resources-js
EXPOSE
80
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment