Skip to content

Commit

Permalink
Fixed Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
catttam committed Jul 15, 2024
1 parent e253873 commit dd5a5d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ COPY requirements.txt /tmp/
RUN pip3 install -r /tmp/requirements.txt

# Create the directory structure for the metrics
RUN mkdir -p /app/metrics/goaccess_outputs/filtered_by_status_code && \
mkdir -p /app/metrics/rawmetrics && \
RUN mkdir -p /app/metrics/rawmetrics/filtered_by_status_code && \
mkdir -p /app/metrics/goaccess-metrics && \
mkdir -p /app/metrics/prometheus-metrics && \
mkdir -p /app/ui && \
Expand Down
13 changes: 6 additions & 7 deletions create_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,19 @@ def generate_html(out_file, dir_path, out_url):
for i, file_name in enumerate(os.listdir(dir_path)):
file_path = os.path.join(dir_path, file_name)
if os.path.isfile(file_path) or os.path.isdir(file_path):
if "dashboard" in file_name:
file_name = "GoAccess Dashboard"
if "goaccess-metrics" in file_name:
file_name = "GoAccess Metrics"
if "prometheuds-metrics" in file_name:
file_name = "Prometheus Metrics"
if os.path.isdir(file_path):
relative_url=file_name+".html"
generate_html(OUT_PATH+relative_url, file_path, out_url+file_name+"/")
file_url = out_url+relative_url
else:
file_url = out_url+file_name
icon = get_icon(file_name)

if "dashboard" in file_name:
file_name = "GoAccess Dashboard"
if "goaccess-metrics" in file_name:
file_name = "GoAccess Metrics"
if "prometheuds-metrics" in file_name:
file_name = "Prometheus Metrics"
file_entry = html_file_entry_template.format(url=file_url, id=i, icon=icon, filename=file_name)
html_content += file_entry

Expand Down

0 comments on commit dd5a5d6

Please sign in to comment.