Skip to content

Commit

Permalink
add docker examples
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Jun 6, 2024
1 parent d5d0ee9 commit ee6dc6a
Show file tree
Hide file tree
Showing 99 changed files with 5,456 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/docker/basic/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM lucee/lucee:6.1.0.175-BETA

# Provide test page by creating the directory and copying files
RUN mkdir -p /var/www
COPY www/ /var/www/

# how to build it
# docker build -t lucee-basic .

# how to run it (provides port for nginx and tomcat (optional); Lucee admin password)
# docker run -d -p 8054:80 -p 8854:8888 -e LUCEE_ADMIN_PASSWORD=qwerty lucee-basic
13 changes: 13 additions & 0 deletions examples/docker/basic/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:
lucee:
image: lucee-basic:latest
environment:
- LUCEE_ADMIN_PASSWORD=qwerty
volumes:
- "./www:/var/www"
ports:
- "8854:8888" # tomcat
- "8054:80" # nginx

# how to run it
# docker-compose up -d
28 changes: 28 additions & 0 deletions examples/docker/basic/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Simple Lucee Docker Setup

This repository contains configurations to set up a basic Lucee server using Docker and Docker Compose.

## Files

- `Dockerfile`: Defines the Docker image for the Lucee server.
- `docker-compose.yml`: Defines the services and configurations to run the Lucee server build using Docker Compose.

## Dockerfile

The `Dockerfile` uses the `lucee/lucee:6.1.0.175-BETA` image and sets up a basic Lucee server with some pages. It includes instructions to create the necessary directory structure and copy the website files into the container.

### How to Build

To build the Docker image defined by the `Dockerfile`, navigate to the directory containing the file and execute this command `docker build -t lucee-basic .`.

### How to Run

To run the Docker container created from the image, use this Docker's run command `docker run -d -p 8054:80 -p 8854:8888 -e LUCEE_ADMIN_PASSWORD=qwerty lucee-basic`. The container will expose ports for Nginx and Tomcat, and you can set the Lucee admin password through environment variables. You can also start it with `docker compose` (see below).

## docker-compose.yml

The `docker-compose.yml` file defines a service for running the Lucee server created with `Dockerfile`. It specifies the image to use, environment variables, volume mappings, and port configurations. This is useful to map an external drive you can access and modify.

### How to Run

To run the services defined in the `docker-compose.yml` file, navigate to the directory containing the file and use this Docker Compose's up command `docker-compose up -d`. This will start the services in detached mode, exposing the necessary ports and setting the Lucee admin password as specified.
4 changes: 4 additions & 0 deletions examples/docker/basic/www/Application.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
component {

this.Name = "Lucee";
}
15 changes: 15 additions & 0 deletions examples/docker/basic/www/assets/css/core/_ed07b761.core.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 56 additions & 0 deletions examples/docker/basic/www/assets/css/core/ie8.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
input[type="checkbox"] + label.checked:before {
background-position: -162px -68px;
content: ","; /* IE8 Fix, force repaint of before */
}

input[type="radio"] + label.checked:before {
background-position: -162px -96px;
content: ","; /* IE8 Fix, force repaint of before */
}

input[type="radio"] + label.checked:before {
background-position: -162px -96px;
content: ","; /* IE8 Fix, force repaint of before */
}

input[type="checkbox"] + label,
input[type="radio"] + label {
max-width: none;
padding-left: 25px !important;
width: 100%;
width: auto;
}

.form-control,
input[type="email"],
input[type="number"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="text"],
textarea {
padding-top: 13px;
}

select.form-control {
padding-top: 12px;
padding-bottom: 11px;
height: auto;
}

.announcement-ticker-wrapper .announcement-ticker .announcement {
min-height: 0;
}

.search-form .search-query {
padding-top: 10px;
}

.supplier-list li.third-child,
.featured-articles .article.third-child {
clear: left !important;
}

.royalSlider .rsNav .rsNavItem {
min-height: 83px;
}
48 changes: 48 additions & 0 deletions examples/docker/basic/www/assets/css/json.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

pre.json-display {
background-color: #2e3b4e;
color: #fff;
padding: 20px;
border-radius: 8px;
overflow-x: auto;
overflow-y: auto;
line-height: 1.5;
white-space: pre-wrap; /* Allows the JSON to wrap within the container */
width: 600px; /* Fixed width */
height: 400px; /* Fixed height */
position: relative;
}

.key {
color: #d19a66; /* Orange color for keys */
}

.string {
color: #98c379; /* Green color for strings */
}

.number {
color: #e5c07b; /* Yellow color for numbers */
}

.boolean {
color: #56b6c2; /* Blue color for booleans */
}

.null {
color: #c678dd; /* Purple color for null */
}

.copy-button {
background-color: #5999b2;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
margin-top: 10px;
}

.copy-button:hover {
background-color: #417a8a;
}
10 changes: 10 additions & 0 deletions examples/docker/basic/www/assets/css/lib/bootstrap.min.css

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/docker/basic/www/assets/img/img-ext.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/docker/basic/www/assets/img/img-link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/docker/basic/www/assets/js/core/_core.min.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ee6dc6a

Please sign in to comment.