gelbo

command module
v0.0.0-...-420a288 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: MIT Imports: 30 Imported by: 0

README

gelbo

backend app for testing elb

usage

  1. pull and run

    docker run -d --name gelbo -p 80:80 -p 443:443 public.ecr.aws/h0g2h5b7/gelbo
    
  2. watch logs

    docker logs -f gelbo
    
  3. stop

    docker stop gelbo
    

container image update

  1. ecr login

    aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/h0g2h5b7
    
  2. build

    docker build -t gelbo .
    
  3. tagging

    docker tag gelbo:latest public.ecr.aws/h0g2h5b7/gelbo:latest
    
  4. push

    docker push public.ecr.aws/h0g2h5b7/gelbo:latest
    
  5. ecr logout

    docker logout public.ecr.aws
    

copy binary from docker image to host volume

  1. build

    docker build -t gelbo .
    
  2. copy

    CONTAINER_ID=`docker create gelbo`
    docker cp $CONTAINER_ID:/app/gelbo .
    docker rm $CONTAINER_ID
    

Documentation

Overview

this code implements the h2c part of HTTP/2.

The h2c protocol is the non-TLS secured version of HTTP/2 which is not available from net/http.

refs:

``` Copyright 2013 The Gorilla WebSocket Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. ``` // refs https://github.com/gorilla/websocket/tree/main/examples/chat // LICENSE: https://github.com/gorilla/websocket/blob/main/LICENSE

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL