-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restructured docker folder; added docker file and build script to aut…
…o-install plugin on docker image build
- Loading branch information
1 parent
823e21c
commit 6e5d8f0
Showing
7 changed files
with
42 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
upload/ | ||
*.zip | ||
docker/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM bitnami/opencart:3.0.3-6-debian-10-r64 | ||
|
||
ENV OPENCART_ROOT_DIR=/opt/bitnami/opencart | ||
|
||
# Copy setup script | ||
ADD ./assets/setup.sh /tmp/setup.sh | ||
|
||
# RUN setup | ||
RUN chmod +x /tmp/setup.sh | ||
RUN /tmp/setup.sh | ||
|
||
# Copy plugin files | ||
COPY ./bin/tawkto/admin/controller/extension /opt/bitnami/opencart/admin/controller/extension | ||
COPY ./bin/tawkto/admin/language/en-gb/extension /opt/bitnami/opencart/admin/language/en-gb/extension | ||
COPY ./bin/tawkto/admin/view /opt/bitnami/opencart/admin/view | ||
COPY --chown=daemon:daemon ./bin/tawkto/catalog/controller/extension /opt/bitnami/opencart/catalog/controller/extension | ||
COPY --chown=daemon:daemon ./bin/tawkto/catalog/view/theme/default /opt/bitnami/opencart/catalog/view/theme/default |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
set -e; | ||
|
||
build_dir=$(dirname $0); | ||
module_dir=$build_dir/bin/tawkto; | ||
|
||
if [ -d "$module_dir" ]; then | ||
echo "Removing existing module folder"; | ||
rm -r $module_dir; | ||
fi | ||
|
||
echo "Creating module folder"; | ||
mkdir -p $module_dir; | ||
|
||
echo "Copying files to module folder"; | ||
cp -r $build_dir/../admin $module_dir | ||
cp -r $build_dir/../catalog $module_dir | ||
|
||
echo "Done building module folder"; | ||
|
||
echo "Building docker image" | ||
docker-compose build |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters