Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Guide for AWS #45

Merged
merged 15 commits into from
Jul 23, 2021
Merged

Guide for AWS #45

merged 15 commits into from
Jul 23, 2021

Conversation

gibbster
Copy link
Contributor

@gibbster gibbster commented Jun 2, 2021

Updated this to use main branch. Replaces #17

@gibbster gibbster mentioned this pull request Jun 2, 2021
```
git clone https://github.com/apple/swift-nio.git
cd swift-nio
swift build -v --static-swift-stdlib -c release
Copy link
Contributor

@tomerd tomerd Jun 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since swift-nio is a library this may be confusing. either we pick another example, or at least lets change the command and call out explicitly that are we building the example NIOHTTP1Server target which ships with swift-nio to make things clearer to a reader that is not familiar with those details

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used swift-nio to parallel what was used in the ubuntu guide. I added a line of description (also matching the ubuntu guide) in the latest push


Finally, check that Swift is correctly installed by running the Swift REPL: `swift`.

![Invoke REPL](../images/aws/repl.png)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it be easier to do the build stage in Docker? instead of downloading and installing the toolchain, one could build in docker on their development machine (or an EC2 instance for development/build/CI purposes), then scp to the runtime EC2 instance.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷‍♂️ Both seem equally easy/hard to me. If you have a strong preference I can update it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@swift-server/sswg wdyt?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dockering it up may be simpler for people to follow 👍
A bit easier to point people at docker images than tell them what specific things to install every time.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’d just add another point of view - one might have a working ec2 setup but doesn’t use docker, which would make adding one more technology more complicated (my actual use case :-). That being said, either works of course, but just wanted to point out it adds another dimension of complexity.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Friendly ping @tomerd ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about we document both? this way folks that are familiar with Docker can go down that path, and others can install the toolchain on the host. hopefully we will have RPMs soon so the latter will be even simpler

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'm happy to do that. Give me a few days to wrap up another task on my plate and I'll get right on it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just added a Docker option - I hope that's helpful

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, that's great 👍

Co-authored-by: tomer doron <tomer@apple.com>
Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks a lot! :-)

I can see this being helpful if someone is first time ever going into aws and playing around with server side swift. Makes sense to include the guide I think.

gibbster and others added 4 commits June 4, 2021 10:16
Co-authored-by: tachyonics <simon@tachyonics.io>
Co-authored-by: George Barnett <gbarnett@apple.com>
Co-authored-by: Kaitlin Mahar <kaitlinmahar@gmail.com>
@tomerd
Copy link
Contributor

tomerd commented Jul 20, 2021

thanks @gibbster this is getting close, made some small suggestions.

also, looks like there are unrelated changes that ended up as part of this PR and need to be removed?

David Gibb and others added 3 commits July 20, 2021 11:40
Co-authored-by: tomer doron <tomer@apple.com>
Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proposed a change but LGTM otherwise, thanks a lot it's a great addition to the guides!

Co-authored-by: Konrad `ktoso` Malawski <konrad.malawski@project13.pl>
Copy link
Contributor

@tomerd tomerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@tomerd tomerd requested a review from a team July 21, 2021 21:53
@ktoso
Copy link
Contributor

ktoso commented Jul 23, 2021

Thanks for the final change and thanks again the entire guide!

@ktoso ktoso merged commit f1d99dc into swift-server:main Jul 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants