Skip to content
"Hello World!" with statically-linked actix-web server on Google App Engine
Rust Dockerfile Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.dockerignore
.gitignore
Cargo.toml
Dockerfile
LICENSE
README.md
app.yaml
build.sh

README.md

Introduction

This is a sample project that shows how to use Google App Engine for deploying a an actix-web server written in Rust to serve a simple "Hello World!" page.

rust-musl-builder makes it possible to create small statically-linked Rust binaries. Google App Engine makes deploying projects written in any language so easy. This setup combines both tools to provide a startpoint for building an effortless, lightweight, performant and automatically scaling REST-Endpoint.

Structure

  • Dockerfile is used by Google App Engine as runtime for the project. It is very minimal and only includes the statically-linked binary.
  • build.sh uses rust-musl-builder to build the statically linked binary i.e., the server.

Instructions

  1. Build the project with $ sh build.sh. This requires Docker.
  2. Deploy the server with $ gcloud app deploy.
You can’t perform that action at this time.