Skip to content

Commit

Permalink
fixed dockerfile to make sure invoke-rc.d apache2 status/reload works
Browse files Browse the repository at this point in the history
  • Loading branch information
abessiari committed Jul 21, 2021
1 parent 8be6029 commit 47e5f64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ RUN apt-get update \
&& apt-get clean

RUN useradd -m -s /bin/bash -u 1500 ubuntu \
&& echo "ubuntu ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
&& echo "ubuntu ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers \
&& echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d

COPY ./docker/entrypoint.sh /
RUN chmod +x /entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion provision/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ data "aws_eip" "purl_eip" {

resource "aws_eip_association" "eip_assoc" {
instance_id = aws_instance.purl_server.id
allocation_id = data.aws_eip.purl_eip.public_ip
allocation_id = data.aws_eip.purl_eip.id
}

resource "aws_instance" "purl_server" {
Expand Down

0 comments on commit 47e5f64

Please sign in to comment.