Skip to content

Commit

Permalink
getting postgres db working adding missing libs
Browse files Browse the repository at this point in the history
  • Loading branch information
d-linko committed May 9, 2024
1 parent 87a97af commit 5e69726
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
10 changes: 4 additions & 6 deletions ion/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@
## limitations under the License.
##

FROM anms-base AS ion-base

RUN dnf -y install container-tools
RUN dnf -y install \
FROM anms-init AS ion-base
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
RUN dnf install -y \
autoconf libtool \
cmake ninja-build \
ruby rsync \
ruby rsync git \
systemd systemd-sysv \
patch autoconf libtool \
make gcc gcc-c++ libpq-devel \
Expand All @@ -32,7 +31,6 @@ RUN dnf -y install \
dnf clean all && rm -rf /var/cache/yum && \
PERL_MM_USE_DEFAULT=1 cpan -T JSON REST::Client Expect File::Slurp


COPY src/deps/ion /usr/src/nm/deps/ion
COPY src/deps/ion*.patch /usr/src/nm/deps/
RUN cd /usr/src/nm/deps/ion && \
Expand Down
1 change: 1 addition & 0 deletions ion/systemd/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Requires=ion.service
[Service]
Type=simple
PassEnvironment=ION_NODE_NUM
EnvironmentFile=-/etc/ion/environment
ExecStart=bpecho ipn:${ION_NODE_NUM}.%i

[Install]
Expand Down
2 changes: 1 addition & 1 deletion ion/systemd/ion-nm-agent.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=ION NM Agent
After=network-online.target ion.service ion-nm-mgr.service
Wants=network-online.target
Wants=network-online.target ion-nm-mgr.service
Requires=ion.service

[Service]
Expand Down
2 changes: 1 addition & 1 deletion ion/systemd/ion-nm-mgr.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Type=notify
PassEnvironment=ION_NODE_NUM DB_HOST DB_NAME DB_USER DB_PASSWORD
EnvironmentFile=-/etc/ion/environment
ExecStart=ion_nm_wrap --listen /var/run/nm_mgr.socket -- \
ion_nm_mgr -A ipn:${ION_NODE_NUM}.7 \
ion_nm_mgr -A ipn:${ION_NODE_NUM}.7 \
--sql-host ${DB_HOST} \
--sql-db ${DB_NAME} \
--sql-user ${DB_USER} \
Expand Down
3 changes: 1 addition & 2 deletions ion/systemd/ion.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ Wants=network-online.target
[Service]
Type=forking
PassEnvironment=ION_NODE_NUM
EnvironmentFile=-/etc/ion/environment
# ION writes logs in the CWD
WorkingDirectory=/var/run/ion
ExecStartPre=touch ion.log
ExecStartPre=chmod 666 ion.log
# Substitute node number where necessary
ExecStartPre=sed -i s/@ION_NODE_NUM@/${ION_NODE_NUM}/g /etc/ion.rc
ExecStartPre=sed -i -c s/@ION_NODE_NUM@/${ION_NODE_NUM}/g /etc/ion.rc
ExecStart=ionstart -I /etc/ion.rc
ExecStop=ionstop

Expand Down

0 comments on commit 5e69726

Please sign in to comment.