Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,17 @@ $ nitrogen build examples/nginx/

```sh
$ nitrogen deploy nitrogen-test ~/.ssh/id_rsa
> Listening: ec2-1-234-56-789.compute-1.amazonaws.com:5000
> EIF is now running public_dns="ec2-1-234-56-789.compute-1.amazonaws.com:5000"
```

```sh
$ curl http://ec2-1-234-56-789.compute-1.amazonaws.com:5000/
> Hello World
> <!DOCTYPE html>
<html>
<head>
<title>Hello Nitrogen!</title>
</head>
</html>
```

### Nginx TLS Examples
Expand Down
2 changes: 2 additions & 0 deletions examples/nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ FROM nginx:stable-alpine

RUN apk --no-cache add socat=1.7.4.3-r0

COPY index.html /usr/share/nginx/html/index.html

COPY run.sh ./
RUN ["chmod", "+x", "./run.sh"]

Expand Down
6 changes: 6 additions & 0 deletions examples/nginx/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<title>Hello Nitrogen!</title>
</head>
</html>
2 changes: 2 additions & 0 deletions src/commands/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ fn run_eif(
.output()?;
debug!(stdout=?run_out);

info!(public_dns = url, "EIF is now running");

if !run_out.status.success() {
Err(failure::err_msg(format!(
"failed to run enclave{:?}",
Expand Down