Skip to content

Commit

Permalink
add some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
costateixeira committed Aug 6, 2024
1 parent 6d6e2db commit f126c6d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ubuntu:24.04 as builder
ENV DEBIAN_FRONTEND=noninteractive


RUN apt update && apt install -y tzdata wget git unixodbc-dev libgtk2.0-dev xvfb sqlite3 libsqlite3-dev build-essential curl binutils
RUN apt update && apt-get upgrade -y && apt install -y tzdata wget git unixodbc-dev libgtk2.0-dev xvfb sqlite3 libsqlite3-dev build-essential curl binutils && apt-get clean && rm -rf /var/lib/apt/lists/*

# Download and build OpenSSL 1.1.1w
WORKDIR /tmp
Expand Down Expand Up @@ -103,7 +103,7 @@ ENV PORT=80
ENV TERMINOLOGY_CACHE=/var/cache/txcache

# Install runtime dependencies
RUN apt-get update && apt-get install -y wget tzdata xvfb libgtk2.0-0 libsqlite3-dev curl \
RUN apt-get update && apt-get upgrade -y && apt-get install -y wget tzdata xvfb libgtk2.0-0 libsqlite3-dev curl && apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p $HOME/fhirserver/config $TERMINOLOGY_CACHE /fhirserver \
&& chmod -R 777 $TERMINOLOGY_CACHE \
Expand Down
2 changes: 1 addition & 1 deletion server/endpoint_storage.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ function TStorageWebEndpoint.SecureRequest(AContext: TIdContext; ip: String;
else if request.Document = PathNoSlash then
begin
result := 'Home Page';
ReturnProcessedFile(request, response, Session, '/hompage.html', Common.SourceProvider.AltFile('/homepage.html', PathNoSlash), true)
ReturnProcessedFile(request, response, Session, '/homepage.html', Common.SourceProvider.AltFile('/homepage.html', PathNoSlash), true)
end
else
begin
Expand Down
13 changes: 7 additions & 6 deletions server/fhirserver.lpi
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
<Version Value="12"/>
Expand All @@ -18,8 +19,8 @@
<VersionInfo>
<UseVersionInfo Value="True"/>
<MajorVersionNr Value="3"/>
<MinorVersionNr Value="4"/>
<RevisionNr Value="7"/>
<MinorVersionNr Value="6"/>
<RevisionNr Value="2"/>
<Attributes pvaDebug="False"/>
</VersionInfo>
<BuildModes Count="8">
Expand Down Expand Up @@ -130,7 +131,7 @@
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir);..\library"/>
<Libraries Value="\usr\local\lib64\"/>
<Libraries Value="\usr\local\lib64"/>
<OtherUnitFiles Value="..\library\fsl\tests;..\library\fhir\tests;..\library\fhir4\tests;..\library\fhir4b\tests;..\library\fhir5\tests;..\library\ftx\tests;..\library\fxver\tests;..\library\cda\tests;..\library\v2\tests;..\library\fdb\tests;modules;tests;admin;..\library\fcomp\tests;tx"/>
<UnitOutputDirectory Value="lib\$(BuildMode)"/>
</SearchPaths>
Expand Down Expand Up @@ -323,7 +324,7 @@
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir);../library"/>
<Libraries Value="/usr/local/lib64/;/tmp/openssl/lib/;/tmp/openssl/"/>
<Libraries Value="/usr/local/lib64;/tmp/openssl/lib;/tmp/openssl"/>
<OtherUnitFiles Value="../library/fsl/tests;../library/fhir/tests;../library/fhir4/tests;../library/fhir4b/tests;../library/fhir5/tests;../library/ftx/tests;../library/fxver/tests;../library/cda/tests;../library/v2/tests;../library/fdb/tests;modules;tests;admin;../library/fcomp/tests;tx"/>
<UnitOutputDirectory Value="lib/$(BuildMode)"/>
</SearchPaths>
Expand Down Expand Up @@ -833,7 +834,7 @@
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir);../library"/>
<Libraries Value="/usr/local/lib64/;/tmp/openssl/lib/;/tmp/openssl/"/>
<Libraries Value="/usr/local/lib64;/tmp/openssl/lib;/tmp/openssl"/>
<OtherUnitFiles Value="../library/fsl/tests;../library/fhir/tests;../library/fhir4/tests;../library/fhir4b/tests;../library/fhir5/tests;../library/ftx/tests;../library/fxver/tests;../library/cda/tests;../library/v2/tests;../library/fdb/tests;modules;tests;admin;../library/fcomp/tests;tx"/>
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
Expand Down Expand Up @@ -1036,7 +1037,7 @@
<Name Value="EPackageCrawlerException"/>
</Item50>
<Item51>
<Name Value="&lt;Unknown Class&gt;"/>
<Name Value="&lt;Unknown Class>"/>
</Item51>
<Item52>
<Name Value="EDateFormatError"/>
Expand Down
2 changes: 1 addition & 1 deletion server/web/diagnostics.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h3>Current Activity</h3>
<ul>
<li>Background Thread: [%status.thread%]</li>
<li>CDS client instances: [%status.cds.client%]</li>
<li>[%status.web-total-count%] total requests for [%status.web-total-time%]ms. [%status.web-rest-count%] REST requests for [%status.web-rest-time%]ms. [%status.run-time%] since starting ({%status.run-time.ms%]ms)</li>
<li>[%status.web-total-count%] total requests for [%status.web-total-time%]ms. [%status.web-rest-count%] REST requests for [%status.web-rest-time%]ms. [%status.run-time%] since starting ([%status.run-time.ms%] ms)</li>
</ul>

[%status.web%]
Expand Down

0 comments on commit f126c6d

Please sign in to comment.