Comments (3)
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.
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.
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)
- Add a README.md HOT 2
- Expose release time through https://pub.dartlang.org/api HOT 2
- Suggestion: custom Exception type for issues that the user should be able to correct.
- Create a simple file-based server HOT 2
- pub get not finishing HOT 3
- multiple source about pub
- pub_server will crash when could not find package on pub.dartlang.org
- pub get hanging on typing issue HOT 3
- Publish to pub HOT 1
- Local private pub-server usage problem HOT 2
- [Proposal] Pass down shelf request object as param in `PackageRepository`'s abstract methods HOT 4
- Set Content-Type application/vnd.pub.v2+json
- Pub Server Authentication For Private Pub Packages HOT 1
- Unable to push packet on pub.dartlang.org HOT 1
- After I executed "pub publish", the authorization was successful, but I always waited for timeout. May I ask why? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pub_server.