Giter VIP home page Giter VIP logo

Comments (3)

jonasfj avatar jonasfj commented on July 22, 2024

Please explain what you are trying to do? What platform are you on? Are you using the Chinese community mirror..

Please reopen if you have additional information...

Note. the pub server is https://github.com/dart-lang/pub-dartlang-dart
This repo is an abstraction defining the interface...

from pub_server.

droplet-js avatar droplet-js commented on July 22, 2024

@jonasfj

Dockerfile

# --- download ---

FROM alpine:3.8 as download

RUN wget https://github.com/dart-lang/pub_server/archive/master.tar.gz
RUN tar xzf master.tar.gz

# --- prod ---

FROM google/dart:2.2.0

MAINTAINER v7lin <[email protected]>

COPY --from=download /pub_server-master /pub_server

WORKDIR /pub_server

RUN pub get

EXPOSE 8080

ENTRYPOINT ["/usr/bin/dart", "example/example.dart", "-d", "/tmp/package-db"]

docker-compose.yml

version: "3.7"

services:

  pub_server:
    container_name: pub_server
    image: v7lin/pub_server
    restart: always
    ports:
      - 8080:8080
    volumes:
      - ../../dev-ops-repo/pub_server:/tmp/package-db
    environment:
      - TZ=${TIME_ZONE:-Asia/Shanghai}

i want to run pub_server on docker container. and publish dart packages to private pub_server

pub publish --server http://localhost:8080

from pub_server.

jonasfj avatar jonasfj commented on July 22, 2024

Ah, cool :)

You are of course welcome to contribute fixes to this project, there is no reason the examples here shouldn't be good (but I don't think we're investing resources in fixing bugs). This project does not aim to build a minimalistic pub server, it provides an abstraction that defines the API. I would suggest you read the HTTP API and write a custom server instead of trying to use the example here.

Note. the API is outlined here:
https://github.com/dart-lang/pub_server/blob/master/lib/shelf_pubserver.dart#L26

It's really not that hard to implement :)

If you have any questions about the you can hit me up on gitter.im or something. Also do let me know if you write a minimalistic pub server implementation, I'd be very curious to learn about it :)

from pub_server.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.